ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Parmar, Virendra Bavjibhai (Virendra)" <viren...@lucent.com>
Subject RE: How to pass environment in ant files
Date Wed, 19 Feb 2003 10:45:38 GMT
Hi Chris,

Thanks for the help. It works. Here is a sample file containing the code.

<?xml version="1.0" encoding="UTF-8"?>
<project name="example" default="init">
  <property environment="env"/>
  <target name="init">
    <echo message="HOME DIR is = ${env.HOME}"/>
    <echo message="ANT_HOME is set to = ${env.ANT_HOME}"/>
  </target>
</project>

-Virendra

-----Original Message-----
From: Hagen, Christian [mailto:chagen@init-ka.de]
Sent: Wednesday, February 19, 2003 3:11 PM
To: Ant Users List
Subject: AW: How to pass environment in ant files


Hi,

it is rather complicated, so you should have a look at the manual first ;-).
Hint: Core Task "Property", Parameter "environment".

Greetings
Chris

> -----Urspr√ľngliche Nachricht-----
> Von: Parmar, Virendra Bavjibhai (Virendra) 
> [mailto:virendra@lucent.com]
> Gesendet: Mittwoch, 19. Februar 2003 10:36
> An: 'Ant Users List'
> Betreff: How to pass environment in ant files
> 
> 
> Hi,
> 
> I am doing local build and there are some directories which I 
> have hardcoded
> in ant.properties file. Those directory are /home/<username> 
> directory.
> Instead of this, I want to use $HOME variable in ant.properties file. 
> 
> Can someone help me to solve this problem.
> 
> Thanks,
> -Virendra
>  
> 
> ---------------------------------------------------------------------
> 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

Mime
View raw message