-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
quarkus.args not work with gradle and quarkus 2.13.0 #28443
Comments
/cc @glefloch, @quarkusio/devtools |
Thanks for reporting this @deblockt I will have a look into it. |
@glefloch any idea what's going on? |
Yes I think we just don't forward system property from the gradle process to the quarkus dev process. It should be easy to fix |
I can take a look at this issue, it seems to be an affordable first issue for me after reading @glefloch comments. |
Yes you can, I gave it a try a week a go, but it wasn't as easy as I thought, I tried declaring gradle system properties to the quarkus process system properties but it had no effects :/ |
It isn't the affordable first issue I was expecting 😃 as I've made several tests and it seems that no project context is reaching the QuarkusDev task. I'll keep investigating. |
Finally have it 🎉 !!! Will try creating a test case for this and prepare a PR. |
Awesome, thanks! |
I have a doubt regarding launching dev mode. Launching with either args: 2
[param1=1, param2=2] Nevertheless launching dev mode using args: 1
[param1=1 param2=2] The main code is the following: public static void main(String... args) {
System.out.println("args: " + args.length);
System.out.println(Arrays.toString(args));
} Is passing arguments in the form |
I think |
Describe the bug
I try to write my own main like that:
And execute it using
quarkus cli
like thatExpected behavior
The main is executed and display "1"
Actual behavior
The main is executed and display "0"
How to Reproduce?
No response
Output of
uname -a
orver
Darwin --- 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64 x86_64 i386 MacBookPro16,1 Darwin
Output of
java -version
1.17
GraalVM version (if different from Java)
2.13.0
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)7.4.2
Additional information
In verbose mode I can see that parameter is set on quarkus.args but seem not used:
The text was updated successfully, but these errors were encountered: