Javafx deploy ant task question...
Tony Anecito
adanecito at yahoo.com
Thu May 1 01:36:53 UTC 2014
Thanks Danno I am surprised also this has slipped notice. I thought I was crazy but I guess not. I will look at the workaround since I so hate hardcoding which is what I did to get things to work.
Thanks for looking into my issue.
-Tony
On Wednesday, April 30, 2014 5:51 PM, Danno Ferrin <danno.ferrin at oracle.com> wrote:
After reading the code I am surprised by the answer I am going to give.
You can’t. Not with the current code.
The arguments passed into the java main class are the arguments passed into the executable launching it. So if you launch the win app via command line with arguments you get the arguments, but of you launch via start screen/start menu you get no arguments.
This is worthy of a JIRA for 8u40 (I think 8u20 is too far down the pike for feature adds). Also, propose what we should do when we both have a bundler specified command line and the user passes one in via the command line. I’m thinking we ignore the bundled one and use the command line ones. I think this is better than any prepend/append solution.
As a workaround, you can use system properties either via jvmArgument or jvmUserArgument. For user arguments the values are simply smashed together, so if you are setting system properties you need to set the key to "-Dprop=“
—Danno
On Apr 30, 2014, at 4:34 PM, Tony Anecito <adanecito at yahoo.com> wrote:
> Hi All,
>
> Does anyone know how to get command line parameters passed to the "args" of a java program via the javafx deploy ant task? I tried and could not get anything to work. I have a command line argument like serverid=myserver and want to to get passed to my program via "args".
>
> Thanks!
> -Tony
More information about the openjfx-dev
mailing list