[ http://jira.codehaus.org/browse/MNG-2358?page=all ]

John Casey updated MNG-2358:
----------------------------

    Fix Version: 2.1

> Default value for 'file' attribute of install/deploy tasks should be 
> available.
> -------------------------------------------------------------------------------
>
>          Key: MNG-2358
>          URL: http://jira.codehaus.org/browse/MNG-2358
>      Project: Maven 2
>         Type: Improvement

>   Components: Ant tasks
>     Versions: 2.0.4
>  Environment: Not of importance.
>     Reporter: Davy Toch
>      Fix For: 2.1

>
>
> It would be useful to have a default value for the 'file' attribute in the 
> install/deploy tasks of the M2 ant tasks, based on the POM settings.
> <project name="test" default="test"
>   xmlns:m="antlib:org.apache.maven.artifact.ant">
>   <target name="test">
>     ...
>     <m:pom id="POM" file="pom.xml"/>
>     <!-- 
>      Problem e.g. when POM.packaging=ejb.
>     -->
>     <property name="artifact.url"
>       
> value="${POM.build.directory}/${POM.artifactId}-${POM.version}.${POM.packaging}"/>
>     ...
>     <m:install file="${artifact.url}">
>       <pom refId="POM"/>
>     </m:install>
>     <m:deploy file="${artifact.url}">
>       <pom refId="POM"/>
>     </m:deploy>
>   </target>
> </project>

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