ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kyle Adams" <kad...@gfs.com>
Subject Re: Ant book?
Date Tue, 03 Jul 2001 18:54:32 GMT
Another solution would be to simply invoke Ant as

ant -Dbuild=foo -Ddist=bar

and leave out the <property> settings in the ant file itself.
If you define a property from the command line, then you
can simply begin using it in the ant file itself.  You don't have
to redefine it using the <property> setting.

Kyle

>>> bodewig@apache.org 07/03/01 10:03AM >>>
make that 

<property name="build" value="${build.from.batch}"/>
<property name="dist"  value="${dist.from.batch}"/>

and invoke Ant as 

ant -Dbuild.from.batch=foo -Ddist.from.batch=bar

Stefan


Mime
View raw message