ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <>
Subject Re: Make to Ant
Date Thu, 04 Apr 2002 16:37:45 GMT
--- Abhay Kulkarni <> 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
> 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



Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message