gretty-gradle-plugin / gretty

Advanced gradle plugin for running web-apps on jetty and tomcat.
MIT License
129 stars 36 forks source link

ExtraResourceBase not found after updating from 3.x to 4.x #295

Open Maddin-M opened 1 year ago

Maddin-M commented 1 year ago

Hello,

for a little bit of context: I have found Gretty from libKTX, a game framework based on libGDX. More specifically from the example build.gradle provided to build and start the application on a webserver, which uses TeaVM to translate the code into a JavaScript webapp and then Gretty to start it.

So as far as I understand you cannot just change the resource base of Gretty but you can add additional webapp directories via extraResourceBase(...) which I use to point to build/dist/webapp, as it is where the built app is stored. Which works fine in version 3.1.1.

But after updating to 4.1.0, I get the following error:

java.nio.file.NoSuchFileException: D:\path\to\my\project\teavm\src\main\webapp

Although it should look at D:\path\to\my\project\teavm\build\dist\webapp

Has anything changed with the update, that the code has to be adjusted? Thank you!