[ 
http://jira.codehaus.org/browse/MANTTASKS-187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Herve Boutemy closed MANTTASKS-187.
-----------------------------------

    Resolution: Duplicate

this is a duplicate of MANTTASKS-179

> maven ant tasks 2.1.0 pom task no longer extrapolates properties 
> -----------------------------------------------------------------
>
>                 Key: MANTTASKS-187
>                 URL: http://jira.codehaus.org/browse/MANTTASKS-187
>             Project: Maven 2.x Ant Tasks
>          Issue Type: Bug
>          Components: pom task
>    Affects Versions: 2.1.0
>            Reporter: Andreas Kohn
>
> Seems to be a regression from 2.0.9, maybe caused by MANTTASKS-153 (?)
> The build.xml:
> {noformat}
> <project xmlns:artifact="antlib:org.apache.maven.artifact.ant" default="test">
>         <!-- Change version to 2.1.0 here -->
>       <taskdef uri="antlib:org.apache.maven.artifact.ant" 
> resource="org/apache/maven/artifact/ant/antlib.xml"/>
>       <target name="test">
>               <artifact:pom id="p" file="pom.xml" />
>               <echo>${p.build.finalName}</echo>
>       </target>
> </project>
> {noformat}
> The pom.xml loaded by the build.xml:
> {noformat}
> <project>
>       <modelVersion>4.0.0</modelVersion>
>       <groupId>com.example</groupId>
>       <artifactId>test</artifactId>
>       <version>1.0-SNAPSHOT</version>
> </project>
> {noformat}
> Running with maven-ant-tasks 2.0.9 gives:
> {noformat}
> $ CLASSPATH=$CLASSPATH:$PWD/maven-ant-tasks-2.0.9.jar ANT_HOME= 
> ~/modules/apache-ant-1.7.1/bin/ant 
> Buildfile: build.xml
> test:
>      [echo] test-1.0-SNAPSHOT
> BUILD SUCCESSFUL
> Total time: 0 seconds
> {noformat}
> Running with maven-ant-tasks 2.1.0 gives:
> {noformat}
> $ CLASSPATH=$CLASSPATH:$PWD/maven-ant-tasks-2.1.0.jar ANT_HOME= 
> ~/modules/apache-ant-1.7.1/bin/ant 
> Buildfile: build.xml
> test:
>      [echo] ${project.artifactId}-${project.version}
> BUILD SUCCESSFUL
> Total time: 1 second
> {noformat}
> This is distilled down from the Apache lucene common-build.xml.

-- 
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