Ant run jar file with arguments


















Max amount of memory to allocate to the forked JVM, ignored if fork is false. The name of a property in which the return code of the command should be stored. Only of interest if failonerror is false and if fork is true.

Name of a file to which to write the output. If the error stream is not also redirected to a file or property, it will appear in this output. If you redirect error with the error or errorProperty attributes, this will have no effect.

The name of a property in which the output of the command should be stored. Unless the error stream is redirected to a separate file or stream, this property will include the error output.

A file from which the executed command's standard input is taken. This attribute is mutually exclusive with the inputstring attribute. A string which serves as the input stream for the executed command. This attribute is mutually exclusive with the input attribute. No; default is to take standard input from console unless spawn is true. Stop the command if it doesn't finish within the specified time given in milliseconds.

It is highly recommended to use this feature only if fork is true. Whether output should completely be discarded. This setting is incompatible with any setting that redirects output to files or properties. If you set this to true error output will be discared as well unless you redirect error output to files, properties or enable logError.

Whether error output should completely be discarded. Add a comment. Active Oldest Votes. You have two options. The easy way is to create a shell script:! Improve this answer.

If I create a shell script, do I this in Automator? Or di I just do it in text pad? If I want to bundle it as an app, can I use Automator to create a new Application? Is that the same? I'm assuming the jar itself, the classes, the manifest, and swt. Then once I save it, how do I edit the plist file to specify what i wanted to do in my original post? Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.

Post as a guest Name. Email Required, but never shown. The java task ant. I like how you proposed a solution without the -Dargs — Sgene9. How does xml look like when I don't know how many args I will have? What if number of args isn't constant? It is Good to Meet You! Really helpful to have an entire file as a working exercise - we never did work out why parameter passing didn't work in our original file, but successfully modified the working file to include all the needed functionality without breaking the parameters What if I need just pass sort of switcher e.

Show 1 more comment. Can you be a bit more specific about what you're trying to do and how you're trying to do it? Richard Cook Richard Cook I think it's a shame there's not some option in ant whereby you could do something like: ant -- arg1 arg2 arg3 mpirun uses this type of syntax; ssh also can use this syntax I think.

Hugh Perkins Hugh Perkins 6, 6 6 gold badges 53 53 silver badges 67 67 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science.



0コメント

  • 1000 / 1000