ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcus Kazmierczak <mkazmierc...@etrade.com>
Subject RE: Linux - Environment Variable (AF_HOME)
Date Fri, 01 Jun 2001 22:39:34 GMT

The ant -debug does not show the environment 
variable AF_HOME but it does show the AFHOME 
variable being set.

Both variables are set in my environment and
both are set the same way in my .bashrc file.
>From the cmd line:

$ echo $AF_HOME
/usr/local/tomcat

$ echo $AFHOME 
/usr/local/tomcat




-----Original Message-----
From: Larry V. Streepy, Jr. [mailto:streepy@healthlanguage.com]
Sent: Friday, June 01, 2001 3:34 PM
To: ant-user@jakarta.apache.org
Subject: Re: Linux - Environment Variable (AF_HOME)


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

Mime
View raw message