ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Passing command line arguments to the "run" target??
Date Sat, 26 Aug 2006 14:08:08 GMT
I am using ant to compile a Java program that depends on quite a large
number of other libraries.

This program handles command line parameters of the form "--opt1 value1 -v
--opt2 val2 arg1 arg2" etc.

I would like to run the program from within an ant task so that I can make
use of how ant can collect the classpath etc., but I would like to pass such
command line parameters on the program being called in the run task.

This must be something that is needed quite often when developing Java
programs that use command line options. How can I do this?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message