[ https://jira.codehaus.org/browse/MNG-4780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Benedict updated MNG-4780: ------------------------------- Fix Version/s: (was: Issues to be reviewed for 3.x) > maven-script-ant testcase not working with ant 1.8 > -------------------------------------------------- > > Key: MNG-4780 > URL: https://jira.codehaus.org/browse/MNG-4780 > Project: Maven > 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 was sent by Atlassian JIRA (v6.1.6#6162)