ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: [VOTE] release of ant 1.8.2
Date Wed, 15 Dec 2010 12:55:02 GMT
On 2010-12-15, Paul King wrote:

> This is probably enough to reproduce it:

Yes, it is, thank you Paul.

> <project>
>   <target name="foo">
>     <java classname="" fork="true">
>       <classpath path="${java.class.path}"/>
>       <arg value="-Dbar=${bar}"/>
>     </java>
>   </target>
> </project>

The error message is created by the forked Ant process, not the one
executing the build file.  You would see the same if you used

ant -Dbar=${bar}

(with proper shell escaping in place, that is).  Properties specified on
the command line via -D and -propertyfile can now use other properties
in their values.  Prior to Ant 1.8.2 they were not expanded.

What you see really is a border case that only happens because you use
the same property name in your build file and the property use pass to
the forked Ant process.

I'm not even sure how to document the situation 8-)


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

View raw message