Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Incomplete
-
2.2.1
-
None
-
None
Description
test.build.xml for maven-script-ant contains this:
----------------
<project>
<target name="init-cp" unless="cp-exists">
<path id="maven.plugin.classpath" location="path-is-missing"/>
</target>
<target name="test">
<condition property="cp-exists">
<isreference refid="maven.plugin.classpath"/>
</condition>
<antcall target="init-cp" inheritall="true"/>
<property name="cp" refId="maven.plugin.classpath"/>
<echo>plugin classpath is: ${cp}</echo>
</target>
</project>
----------------
This assumes that definition of path id "maven.plugin.classpath" will be propagated back to target "test" from target "init-cp". This works with ant 1.7 but not with 1.8.x. Documentation doesn't promise this behaviour either.
Easily verifiable by running "ant test" in the directory with build.xml like this one with both versions of ant.