You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by "Felciano, Ramon" <fe...@ingenuity.com> on 2000/04/01 06:52:52 UTC
Properties ignored under Windows?
Hello --
I'm evaluating Ant for our build tool. I just tried moving some Ant build
scripts to Windows (from Solaris) and am having trouble getting it to
recognize properties: all the values come up as null. For example, the
following build file:
<project name="SimpleBuild" default="test" basedir=".">
<property name="foo" value="bar"/>
<target name="test">
<mkdir dir="${foo}"/>
</target>
</project>
produces this output:
D:\Downloads\jakarta-ant>bin\ant.bat -buildfile minimal.xml
Buildfile: minimal.xml
Project base dir set to: D:\Downloads\jakarta-ant
Executing Target: test
Created dir: D:\Downloads\jakarta-ant\null
Completed in 0 seconds
leaving a directory called "null". If I override the property from the
command line (i.e. -Dfoo=bar), it works fine. Any suggestions? Am I doing
something stupid here? This is with both the 3-27 and 3-31 builds.
Thanks.
Ramon M. Felciano
_________________________________
Ramon M. Felciano
INGENUITY Systems, Inc.