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 <adanec...@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