You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Alexey Solofnenko <A....@mdl.com> on 2003/03/19 23:10:23 UTC

RE: Access to Environment Variables other than ANT_HOME of CLASSP ATH

But <property environment> is not very useful, because it is case sensitive
and many environment variables have different case on Windows and on Unix.

- Alexey.

--
{ http://trelony.cjb.net/ } Alexey N. Solofnenko
Pleasant Hill, CA (GMT-8 usually)


-----Original Message-----
From: Sebastien Blanc [mailto:Sebastien.Blanc@alcatel.com] 
Sent: Wednesday, March 19, 2003 2:06 PM
To: Ant Users List
Subject: Re: Access to Environment Variables other than ANT_HOME of
CLASSPATH

<property environment="ejbenv" />

 <fileset dir="${ejbenv.JAVA_HOME}/jre/lib">
         <include name="rt.jar" />
</fileset>

checkout the environment> in doc.
seb.

James Sinnamon wrote:

> Can environment variables be accessed from within a build.xml file?
>
> The FAQs mentioned  ANT_HOME and CLASSPATH, but these seemed
> to only be used for the purposes of getting ant to run.
>
> TIA
>
> Best regards,
>
> James
>
> --
> James Sinnamon
> sinnamon@bigpond.net.au or sinnamon@cs.anu.edu.au
> ph 0412 319669, 02 62842708(h), 02 61258182(w)
>
> ---------------------------------------------------------------------
> 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: Access to Environment Variables other than ANT_HOME of CLASSP ATH

Posted by James Sinnamon <Ja...@cs.anu.edu.au>.
Alexey,

On Thu, 20 Mar 2003 09:10, you wrote:
> But <property environment> is not very useful, because it is case sensitive
> and many environment variables have different case on Windows and on Unix.
>
> - Alexey.

We were only aiming to have our project built on Unix systems for now.  So 
this won't be a problem for the foreseeable future.

When we do cross that bridge, we will probably use the more standard means
of setting configuration parameters and dispense with environment variables.

Thanks for pointing thei out all the same.

Best regards,

James



Re: Access to Environment Variables other than ANT_HOME of CLASSP ATH

Posted by Stefan Bodewig <bo...@apache.org>.
On Wed, 19 Mar 2003, Alexey Solofnenko <A....@mdl.com> wrote:

> But <property environment> is not very useful, because it is case
> sensitive

Which makes it useful on systems with case sensitive environment
variables 8-)

Stefan