Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 1.6.1
-
Fix Version/s: 1.6.3
-
Labels:None
-
Environment:maven 1.x
eclipse 3.1.2
-
Number of attachments :
Description
Hi,
I had a little problem during the creation of a war file.
Here is an example :
I add a applet-1.0.0.jar in the dependencies
I don't put the applet in WEB-INF/lib so I use the property : war.target.path
<war.target.path>lib/</war.target.path>
But, this applet have a version number and I don't want to change my jsp each time I change the dependencies.
I modify the plugin to add the rename of the file :
I add a option (line 172 of plugin.jelly) :
<j:set var="targetPathFile" value="$
"/>
<j:if test="$
">
<ant:copy tofile="$
/$
{targetPathFile}" file="$
{lib.path}"/>
</j:if>
So I can use :
<war.target.pathfile>lib/applet.jar</war.target.pathfile>
and now I can just change the dependencies and not the jsp file.
Is it a wrong way or can you add this options in the plugin ?
I would prefer a property like war.target.filename to be more coherent with some others plugins.
The code could be :
And the settings :