maven-script-ant testcase not working with ant 1.8
--------------------------------------------------

                 Key: MNG-4780
                 URL: http://jira.codehaus.org/browse/MNG-4780
             Project: Maven 2 & 3
          Issue Type: Bug
          Components: Integration Tests
    Affects Versions: 2.2.1
            Reporter: Stanislav Ochotnicky


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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to