ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Command line parameters
Date Wed, 13 Mar 2002 23:19:41 GMT
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:michael@is-inc.ca]
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
michael.laccetti@eldan.com


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

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

Mime
View raw message