You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by chris chriss <mr...@gmail.com> on 2009/09/01 01:57:06 UTC

Re: path env variable for fedora 10 and 11

Any thoughts?

On Sun, Aug 23, 2009 at 2:14 PM, <mr...@gmail.com> wrote:

> 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>
>