You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Olivier Lamy (JIRA)" <ji...@codehaus.org> on 2007/12/20 00:48:57 UTC

[jira] Commented: (MJAR-64) jar:jar ignores command line argument -DfinalName=xxx

    [ http://jira.codehaus.org/browse/MJAR-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_117333 ] 

Olivier Lamy commented on MJAR-64:
----------------------------------

I prefer something like expression="${jar.finalName}".
It's more like other naming convention used.


> jar:jar ignores command line argument -DfinalName=xxx
> -----------------------------------------------------
>
>                 Key: MJAR-64
>                 URL: http://jira.codehaus.org/browse/MJAR-64
>             Project: Maven 2.x Jar Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: Joerg Vater
>             Fix For: 2.2
>
>         Attachments: AbstractJarMojo.java.patch
>
>
> It should be possible to specify the name of a generated jar via command line parameter:
> mvn -DfinalName="xxx" jar:jar
> The following simple change in AbstractJarMojo.java allows to set finalName from the command line:
>     /**
>      * Name of the generated JAR.
>      *
>      * @parameter alias="jarName" expression="${finalName}" default-value="${project.build.finalName}"
>      * @required
>      */
>     private String finalName;

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