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?