You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
The current system changes the working directory when run using "mvnw compile quarkus:dev" to the target/classes directory. This basically comes down to an unexpected behaviour.
A basic tenant I normally work to is "when I run something from a directory I expect it to be running in that directory rather than changing to another directory."
As mentioned in the bug report that I believe this will be confusing for anyone new to the Quarkus framework as it is an unexpected behaviour.
I believe this will save people new to the framework a significant time, effort. I am concerned that it will put people off this fantastic framework. I is very important make sure that the framework behaviour is what you would expect.
Implementation ideas
This is the example of what I mean.
The internal application.properties has the quarkus.http.port set to 9090 and the external my_application.properties file has the quarkus.http.port set to 9292.
When I start up the application either through
mvnw compile quarkus:dev
or
java -jar target/quarkus-example-runner.jar
I am expecting it to listening on 9292.
Actual behavior
When started with the mvnw compile quarkus:dev it listens on 9090 (and can't find the my_application.properties) and java -jar target/quarkus-example-runner.jar listens on 9292.
As pointed out in the bug to me, I could get it to work by putting an absolute path to the external my_application.properties and it would work. But that fact that it has changed directory is confusing.
The text was updated successfully, but these errors were encountered:
Description
The current system changes the working directory when run using "mvnw compile quarkus:dev" to the target/classes directory. This basically comes down to an unexpected behaviour.
A basic tenant I normally work to is "when I run something from a directory I expect it to be running in that directory rather than changing to another directory."
As mentioned in the bug report that I believe this will be confusing for anyone new to the Quarkus framework as it is an unexpected behaviour.
QuarkusExample.zip
The above code has been modified (from that provided in the bug report) slightly to better explain the issue.
See related Issue #4205.
I believe this will save people new to the framework a significant time, effort. I am concerned that it will put people off this fantastic framework. I is very important make sure that the framework behaviour is what you would expect.
Implementation ideas
This is the example of what I mean.
The internal application.properties has the quarkus.http.port set to 9090 and the external my_application.properties file has the quarkus.http.port set to 9292.
When I start up the application either through
mvnw compile quarkus:dev
or
java -jar target/quarkus-example-runner.jar
I am expecting it to listening on 9292.
Actual behavior
When started with the mvnw compile quarkus:dev it listens on 9090 (and can't find the my_application.properties) and java -jar target/quarkus-example-runner.jar listens on 9292.
As pointed out in the bug to me, I could get it to work by putting an absolute path to the external my_application.properties and it would work. But that fact that it has changed directory is confusing.
The text was updated successfully, but these errors were encountered: