Use the ${project.build.finalName} to setup the name of the output library name
-------------------------------------------------------------------------------
Key: MOJO-1548
URL: http://jira.codehaus.org/browse/MOJO-1548
Project: Mojo
Issue Type: Wish
Components: native
Reporter: Karim DRIDI
Attachments: linkerFinalName.patch
It would be great if this functionality can be implemented because using the
artifactId instead of the project.build.finalName parameter is very annoying
and disappointing. Moreover, the naming convention of the artifactId could
prevent the build process to generate the good library generated name.
Considering the implementation of the maven-war-plugin that use the
build.finalName parameter to setup the name of the generated war file, i send
you a possible patch for the code.
You can have a look to the the WarMojo[1] clear to see how it is implemented
(especially line 58-64) and how i updated the NativeLinkerMojo class.
I've also updated the NativeLinkerMojoTest class inspiring myself with the
WarMojoTest[2] class (line 75 and 83) of the maven-war-plugin project.
I hope this patch can fix the problem. Thanks a lot for reading me.
[1]
http://svn.apache.org/viewvc/maven/plugins/tags/maven-war-plugin-2.1-beta-1/src/main/java/org/apache/maven/plugin/war/WarMojo.java?revision=754916&view=markup
[2]
http://svn.apache.org/viewvc/maven/plugins/tags/maven-war-plugin-2.1-beta-1/src/test/java/org/apache/maven/plugin/war/WarMojoTest.java?revision=754916&view=markup
--
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
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email