You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Marcus Kazmierczak <mk...@etrade.com> on 2001/06/02 00:20:53 UTC
Linux - Environment Variable (AF_HOME)
I am having an issue with one specific environment variable
when running on Linux. The same exact thing is tested on
Windows without a problem.
I have the environment variable AF_HOME set and
for testing purposes I also set the variable AFHOME
to the same value.
The AF_HOME value does not show up, it never translates
from ${env.AF_HOME} and will create a directory called
just that when used later in the build process.
Here's my test target from my build.xml file:
<property environment="env"/>
<target name="test">
<echo>
env.AF_HOME = ${env.AF_HOME}
-------------------------------------
env.AFHOME = ${env.AFHOME}
-------------------------------------
env.TOMCAT_HOME = ${env.TOMCAT_HOME}
</echo>
</target>
Running ant returns:
(I have a script that checks for the env. vars and
echos what it finds... then spans ant)
./ant.sh test
Using TOMCAT_HOME = /usr/local/tomcat
Using AF_HOME = /usr/local/tomcat
Usinf AFHOME = /usr/local/tomcat
Buildfile: build.xml
test:
[echo]
env.AF_HOME = ${env.AF_HOME}
-------------------------------------
env.AFHOME = /usr/local/tomcat
-------------------------------------
env.TOMCAT_HOME = /usr/local/tomcat
Re: Linux - Environment Variable (AF_HOME)
Posted by "Larry V. Streepy, Jr." <st...@healthlanguage.com>.
Have you tried ant -debug to see if the environment variables are being
properly internalized to the project properties?
Marcus Kazmierczak wrote:
>
> I am having an issue with one specific environment variable
> when running on Linux. The same exact thing is tested on
> Windows without a problem.
>
> I have the environment variable AF_HOME set and
> for testing purposes I also set the variable AFHOME
> to the same value.
>
> The AF_HOME value does not show up, it never translates
> from ${env.AF_HOME} and will create a directory called
> just that when used later in the build process.
>
> Here's my test target from my build.xml file:
>
> <property environment="env"/>
> <target name="test">
> <echo>
> env.AF_HOME = ${env.AF_HOME}
> -------------------------------------
> env.AFHOME = ${env.AFHOME}
> -------------------------------------
> env.TOMCAT_HOME = ${env.TOMCAT_HOME}
> </echo>
> </target>
>
> Running ant returns:
> (I have a script that checks for the env. vars and
> echos what it finds... then spans ant)
>
> ./ant.sh test
> Using TOMCAT_HOME = /usr/local/tomcat
> Using AF_HOME = /usr/local/tomcat
> Usinf AFHOME = /usr/local/tomcat
>
> Buildfile: build.xml
>
> test:
> [echo]
> env.AF_HOME = ${env.AF_HOME}
> -------------------------------------
> env.AFHOME = /usr/local/tomcat
> -------------------------------------
> env.TOMCAT_HOME = /usr/local/tomcat
--
Larry V. Streepy, Jr.
Chief Technical Officer and VP of Engineering
Health Language, Inc. -- "We speak the language of healthcare"
A subsidiary of CyberPlus Corp.
970/626-5028 (office) mailto:streepy@healthlanguage.com
970/626-4425 (fax) http://www.healthlanguage.com
Re: Linux - Environment Variable (AF_HOME)
Posted by Diane Holt <ho...@yahoo.com>.
What's "ant.sh" -- is that a wrapper-script you have on top of the 'ant'
script? You must be losing the setting of AF_HOME somewhere along the
line. Try modifying the 'ant' script (in $ANT_HOME/bin) to include an
'echo AF_HOME is $AF_HOME' just before the 'java' command-line and see if
it's really still set in that shell.
Diane
--- Marcus Kazmierczak <mk...@etrade.com> wrote:
>
> I am having an issue with one specific environment variable
> when running on Linux. The same exact thing is tested on
> Windows without a problem.
>
> I have the environment variable AF_HOME set and
> for testing purposes I also set the variable AFHOME
> to the same value.
>
> The AF_HOME value does not show up, it never translates
> from ${env.AF_HOME} and will create a directory called
> just that when used later in the build process.
>
>
> Here's my test target from my build.xml file:
>
> <property environment="env"/>
> <target name="test">
> <echo>
> env.AF_HOME = ${env.AF_HOME}
> -------------------------------------
> env.AFHOME = ${env.AFHOME}
> -------------------------------------
> env.TOMCAT_HOME = ${env.TOMCAT_HOME}
> </echo>
> </target>
>
>
> Running ant returns:
> (I have a script that checks for the env. vars and
> echos what it finds... then spans ant)
>
> ./ant.sh test
> Using TOMCAT_HOME = /usr/local/tomcat
> Using AF_HOME = /usr/local/tomcat
> Usinf AFHOME = /usr/local/tomcat
>
> Buildfile: build.xml
>
> test:
> [echo]
> env.AF_HOME = ${env.AF_HOME}
> -------------------------------------
> env.AFHOME = /usr/local/tomcat
> -------------------------------------
> env.TOMCAT_HOME = /usr/local/tomcat
>
>
>
>
=====
(holtdl@yahoo.com)
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/