ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: Make to Ant
Date Thu, 04 Apr 2002 16:37:45 GMT
--- Abhay Kulkarni <abhayk@pune.tcs.co.in> wrote:
> i am facing the problem about the environment variables
> 
> acually i want to convert make file to xml file 
> 
> the make file looks like this
> 
> DATAJAR=$(HOME)\jar\uts\Company-V1.0.jar
> PERLDIR=$(BROOT)\bin
> 
> so i am not understanding  how to set those HOME ,BROOT variables
> externally or i'll have to hardcode it in every xml file

You can access environment variables by using:
  <property environment="your_preferred_prefix"/>

This reads in all the environment variables, setting them as properties
whose names are ${your_preferred_prefix.ENV_VAR_NAME} -- eg., if
"your_preferred_prefix" is "env" (which is what most people tend to use),
after executing the <property> tag, if $HOME and $BROOT are set in the
environment, you'd reference them as the properties ${env.HOME} and
${env.BROOT}.

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message