You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by ba...@goodconsultants.com on 2004/04/10 01:41:20 UTC
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
Re: can i have quotes in the value?
Posted by "Jack J. Woehr" <ja...@purematrix.com>.
barry@goodconsultants.com wrote:
> 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>
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="all" name="changeme">
<target name="all">
<echo message="Here are some " quotes " for you"/>
</target>
</project>
--
Jack J. Woehr # We have gone from the horse and buggy
Senior Consultant # to the moon rocket in one lifetime, but
Purematrix, Inc. # there has not been a corresponding moral
www.purematrix.com # growth in mankind. - Dwight D. Eisenhower
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: can i have quotes in the value?
Posted by Chandu <ch...@translogicsys.com>.
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: <ba...@goodconsultants.com>
To: "ant" <us...@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
RE: can i have quotes in the value?
Posted by Shakun Mahajan <sh...@customercaresolutions.com>.
hi,
you can try using single quotes instead.
infact, Ant has issues with some characters like "<", "!" .. etc
-Shakun
-----Original Message-----
From: barry@goodconsultants.com [mailto:barry@goodconsultants.com]
Sent: Friday, April 09, 2004 4:41 PM
To: ant
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