ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carl Trusiak" <carl_trus...@hotmail.com>
Subject Re: How to change a property value
Date Wed, 26 Mar 2003 12:34:08 GMT
Set it in a properties file.  That way you can have a seperate properties 
file for development and one for release.

<property file="build.properties" />

Another way is to use the -D<property>=<value> option when you run ant.






>From: "D Bamud" <nougain@cad.delhi.nic.in>
>Reply-To: "Ant Users List" <user@ant.apache.org>
>To: <user@ant.apache.org>
>Subject: How to change a property value
>Date: Wed, 26 Mar 2003 17:58:44 +0530
>
>I have set   <property name="JAVAC_G" value="on"/>
>and I am using it like <javac srcdir="xxx" destdir="yyy" 
>debug="${JAVAC_G}">
>
>I have made two targets one for development and one for release. What I 
>want
>is to make the "JAVAC_G"="off" and then call the target for the development
>build. This way I need not to write the build logic separately. How to do 
>this.
>
>Please provide some code snippets. Thanks.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>


_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


Mime
View raw message