----- Original Message -----
From: "Stefan Bodewig" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 12, 2001 10:07 AM
Subject: Re: Is the 'environment' attribute on property task supported on
Windows 2000 environment ?


> AFAIK - yes.

You are right:

D:\temp>set ANT
ANT_HOME=C:\Java\Work\jakarta-ant\build

D:\temp>type build.xml
<?xml version="1.0"?>

<project name="test" default="default" basedir=".">
  <target name="default">
    <property environment="env"/>
    <echo message="${env.ANT_HOME}"/>
  </target>

</project>

D:\temp>ant -verbose
Ant version 1.4alpha compiled on February 25 2001

Buildfile: build.xml
Detected Java Version: 1.3
Detected OS: Windows 2000
Project base dir set to: D:\temp
Build sequence for target `default' is [default]
Complete build sequence is [default]

default:
 [property] Loading Environment env.
     [echo] C:\Java\Work\jakarta-ant\build

BUILD SUCCESSFUL

Total time: 1 second

Nico


Reply via email to