Re: Passing command line arguments to the "run" target??

2006-08-27 Thread johann . petrak
On 8/27/06, Mathieu Champlon <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] a écrit : > > So I want to do something like > ant run -a -b -c > which should result in "-a -b -c" to be passed to the task. > Next time I want to do > ant run -x a 12 23 > and now "-a a 12 23" should be used by the ja

Re: Passing command line arguments to the "run" target??

2006-08-26 Thread johann . petrak
On 8/26/06, Mathieu Champlon <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] a écrit : > (...) > 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 bei

Passing command line arguments to the "run" target??

2006-08-26 Thread johann . petrak
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 c

Using and checking an environment variable?

2006-06-06 Thread johann . petrak
I want to distribute the build.xml file with an application and therefore not include any paths to software the application depends on. Ideally I would want to take this from an environment variable and show an error message if the environment variable is not set. Currently I set a property like