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="org.apache.tools.ant.launch.Launcher" 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-) Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org