Title: Command line parameters

I’m not sure what you mean, but if you refer to the ant command line of the form:

 

ant [ant-options] [-Dname=value …] [targets]

 

for example:

 

            ant –verbose –Ddebug=yes build

 

you cannot access ant-options, all Java properties are accessible in ANT using ${name} (${debug} in this example), and the targets are defined in your build file. You cannot add argument to your target, as in the (INVALID) command below:

 

            ant –verbose –Ddebug=yes build -debugbuild

 

instead, use Java properties properties, as in:

 

            ant –verbose –Ddebug=yes –Dmyargs=-debugbuild build

 

Hope this helps, --DD

 

-----Original Message-----
From: Michael Laccetti [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 4:03 PM
To: Ant List
Subject: Command line parameters

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

How can I access command line parameters that I pass in via a command
line build?

Thanks,
Michael


- -------------------------------------
Michael Laccetti
Developer, Eldan Software
[EMAIL PROTECTED]


-----BEGIN PGP SIGNATURE-----
Version: PGP 7.0.4

iQA/AwUBPI/Mgl4IFvHjSp+CEQKgogCeOsx8RSsneIsVPGvixTx9Aw80nMwAoLd+
FHKDun+DfPBMuKbe+lf7clDd
=Nn/d
-----END PGP SIGNATURE-----

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


Reply via email to