Maybe split up your echo statement into 2 args?

     <arg value="echo" />
     <arg value="$PATH" />

---
Shawn Castrianni

-----Original Message-----
From: chris chriss [mailto:[email protected]] 
Sent: Sunday, August 23, 2009 2:15 PM
To: [email protected]
Subject: path env variable for fedora 10 and 11

I'm trying to append something to the PATH env variable in fedora 10 and
fedora 11. It doesn't seem to work. (Fedora 8 and 9 work as expected, as
well as ubuntu with the same versions of ant 1.7.1). My example below should
echo out the path with "/foo" at the begining.  I don't believe it's a bug
with the version of ant, but how it's interacting with the FC10 and FC11
environment.   Not sure how to track this down.  Any help is greatly
appreciated.

Chris

<project name="test env" default="test" basedir=".">
 <property environment="env"/>

 <target name="test">
   <echo> env.PATH=${env.PATH} </echo>
   <exec dir="/" executable="bash" os="Linux" failonerror="true"
searchpath="true">
     <arg value="--login" />
     <arg value="-c"      />
     <env key="PATH" value="/foo:${env.PATH}"/>
     <arg value="echo $PATH" />
   </exec>
 </target>
</project>

----------------------------------------------------------------------
This e-mail, including any attached files, may contain confidential and 
privileged information for the sole use of the intended recipient.  Any review, 
use, distribution, or disclosure by others is strictly prohibited.  If you are 
not the intended recipient (or authorized to receive information for the 
intended recipient), please contact the sender by reply e-mail and delete all 
copies of this message.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to