MPRAR-2: Added maven.rar.final.name property

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@373167 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
snicoll 2006-01-28 15:44:09 +00:00
parent 1aac560e19
commit c178b0454f
4 changed files with 19 additions and 7 deletions

View File

@ -47,12 +47,12 @@
<!--==================================================================--> <!--==================================================================-->
<goal name="rar:rar" prereqs="rar:init" description="Build a rar file"> <goal name="rar:rar" prereqs="rar:init" description="Build a rar file">
<ant:echo>Building rar ${maven.final.name} with ra.xml "${maven.rar.raxml}"</ant:echo> <ant:echo>Building rar ${maven.rar.final.name} with ra.xml "${maven.rar.raxml}"</ant:echo>
<ant:available property="maven.rar.manifest.available" <ant:available property="maven.rar.manifest.available"
file="${maven.rar.manifest}"/> file="${maven.rar.manifest}"/>
<ant:jar destfile="${maven.build.dir}/${maven.final.name}.rar"> <ant:jar destfile="${maven.build.dir}/${maven.rar.final.name}">
<!-- include files from maven.rar.src if available --> <!-- include files from maven.rar.src if available -->
<util:available file="${maven.rar.src}"> <util:available file="${maven.rar.src}">
@ -134,7 +134,7 @@
description="Install the rar in the local repository"> description="Install the rar in the local repository">
<artifact:install <artifact:install
artifact="${maven.build.dir}/${maven.final.name}.rar" artifact="${maven.build.dir}/${maven.rar.final.name}"
type="rar" type="rar"
project="${pom}"/> project="${pom}"/>
@ -148,7 +148,7 @@
description="Install the snapshot version of the rar in the local repository"> description="Install the snapshot version of the rar in the local repository">
<artifact:install-snapshot <artifact:install-snapshot
artifact="${maven.build.dir}/${maven.final.name}.rar" artifact="${maven.build.dir}/${maven.rar.final.name}"
type="rar" type="rar"
project="${pom}"/> project="${pom}"/>
@ -162,7 +162,7 @@
description="Deploys the rar to the remote repository"> description="Deploys the rar to the remote repository">
<artifact:deploy <artifact:deploy
artifact="${maven.build.dir}/${maven.final.name}.rar" artifact="${maven.build.dir}/${maven.rar.final.name}"
type="rar" type="rar"
project="${pom}"/> project="${pom}"/>
@ -176,7 +176,7 @@
description="Deploys the snapshot version of the rar to remote repository"> description="Deploys the snapshot version of the rar to remote repository">
<artifact:deploy-snapshot <artifact:deploy-snapshot
artifact="${maven.build.dir}/${maven.final.name}.rar" artifact="${maven.build.dir}/${maven.rar.final.name}"
type="rar" type="rar"
project="${pom}"/> project="${pom}"/>

View File

@ -28,4 +28,7 @@ maven.rar.descriptordir=${maven.rar.src}/META-INF
maven.rar.raxml=${maven.rar.descriptordir}/ra.xml maven.rar.raxml=${maven.rar.descriptordir}/ra.xml
maven.rar.manifest=${maven.rar.descriptordir}/MANIFEST.MF maven.rar.manifest=${maven.rar.descriptordir}/MANIFEST.MF
maven.rar.displayname=${pom.id} maven.rar.displayname=${pom.id}
maven.rar.resources=${maven.build.dir}/rar maven.rar.resources=${maven.build.dir}/rar
# Name of generated RAR file
maven.rar.final.name=${maven.final.name}.rar

View File

@ -25,6 +25,7 @@
</properties> </properties>
<body> <body>
<release version="1.1-SNAPSHOT" date="in SVN"> <release version="1.1-SNAPSHOT" date="in SVN">
<action dev="snicoll" type="add" issue="MPRAR-2">Added maven.rar.final.name property.</action>
<action dev="aheritier" type="update" issue="MAVEN-1712">Update dependencies to match ones in maven 1.1 core and to unify them between plugins. The following dependencies are updated : <action dev="aheritier" type="update" issue="MAVEN-1712">Update dependencies to match ones in maven 1.1 core and to unify them between plugins. The following dependencies are updated :
<ul> <ul>
<li>commons-jelly-tags-util v1.1 -> v1.1.1</li> <li>commons-jelly-tags-util v1.1 -> v1.1.1</li>

View File

@ -11,6 +11,14 @@
<th>Property</th> <th>Property</th>
<th>Optional?</th> <th>Optional?</th>
<th>Description</th> <th>Description</th>
</tr>
<tr>
<td>maven.rar.final.name</td>
<td>Yes</td>
<td>
<p>Default value is
<code>${maven.final.name}.rar</code>.</p>
</td>
</tr> </tr>
<tr> <tr>
<td>maven.rar.manifest</td> <td>maven.rar.manifest</td>