ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chandu" <cha...@translogicsys.com>
Subject Re: can i have quotes in the value?
Date Tue, 13 Apr 2004 06:45:51 GMT
Hi,
Put a property file and include this property in it.
Now include that property file into build file as follows.

----- Property file (build.properties)----------
gcc.command="gcc -static-libgcc"


----- build.xml ------------
<property file="build.properties"/>

...
<!-- Now use the property -->
<arg value="CC=${gcc.command}"/>
...


----- Original Message ----- 
From: <barry@goodconsultants.com>
To: "ant" <user@ant.apache.org>
Sent: Saturday, April 10, 2004 5:11 AM
Subject: can i have quotes in the value?


> All,
> 
> Can i actually in the value field? For example,
> 
>  <exec dir="build/${ssl.name}" executable="make">
>                 <env key="LD_LIBRARY_PATH" value="/usr/local/lib"/>
>                 <env key="LD_RUN_PATH" value=""/>
>                 <arg value="CC="gcc -static-libgcc"/>
>                 </exec>
> 
> In the value field, can i do <arg value="CC="gcc -static-libgcc""/>
> 
> Ant seems not to like it. How can i get around it?
> 
> Thanks
> 
> Barry
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message