PR: MPGUMP-1
Add <maven /> tag git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115457 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0fa4c0fb0c
commit
7937fe5657
@ -52,6 +52,12 @@
|
|||||||
<goal name="gump:generate-descriptor"
|
<goal name="gump:generate-descriptor"
|
||||||
description="Generate Gump descriptor from Maven descriptor">
|
description="Generate Gump descriptor from Maven descriptor">
|
||||||
|
|
||||||
|
<j:set var="genAnt" value="${maven.gump.ant.generate}" />
|
||||||
|
<j:set var="genMaven" value="${maven.gump.maven.generate}" />
|
||||||
|
<j:if test="${!genAnt and !genMaven}">
|
||||||
|
<fail>You must specify one of maven.gump.ant and maven.gump.maven</fail>
|
||||||
|
</j:if>
|
||||||
|
|
||||||
<j:set var="gumpProject"><gump:name project="${pom.artifactId}"/></j:set>
|
<j:set var="gumpProject"><gump:name project="${pom.artifactId}"/></j:set>
|
||||||
<j:file name="${basedir}/gump.xml" prettyPrint="true" xmlns="dummy">
|
<j:file name="${basedir}/gump.xml" prettyPrint="true" xmlns="dummy">
|
||||||
<module name="${gumpProject}">
|
<module name="${gumpProject}">
|
||||||
@ -70,9 +76,16 @@
|
|||||||
|
|
||||||
<!-- Standard Maven target to produce Javadocs, source -->
|
<!-- Standard Maven target to produce Javadocs, source -->
|
||||||
<!-- and binary distributions. -->
|
<!-- and binary distributions. -->
|
||||||
<ant buildfile="build.xml" target="dist">
|
<j:if test="${genAnt}">
|
||||||
|
<ant buildfile="build.xml" target="${maven.gump.ant.target}">
|
||||||
<property name="final.name" value="${pom.artifactId}-@@DATE@@"/>
|
<property name="final.name" value="${pom.artifactId}-@@DATE@@"/>
|
||||||
</ant>
|
</ant>
|
||||||
|
</j:if>
|
||||||
|
<j:if test="${genMaven}">
|
||||||
|
<maven goal="${maven.gump.maven.goals}">
|
||||||
|
<property name="final.name" value="${pom.artifactId}-@@DATE@@"/>
|
||||||
|
</maven>
|
||||||
|
</j:if>
|
||||||
|
|
||||||
<package>${pom.package}</package>
|
<package>${pom.package}</package>
|
||||||
|
|
||||||
|
|||||||
@ -14,3 +14,8 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
# -------------------------------------------------------------------
|
# -------------------------------------------------------------------
|
||||||
|
|
||||||
|
maven.gump.ant.generate = false
|
||||||
|
maven.gump.maven.generate = true
|
||||||
|
|
||||||
|
maven.gump.ant.target = dist
|
||||||
|
maven.gump.maven.goals = jar
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
<pomVersion>3</pomVersion>
|
<pomVersion>3</pomVersion>
|
||||||
<id>maven-gump-plugin</id>
|
<id>maven-gump-plugin</id>
|
||||||
<name>Maven Gump Plug-in</name>
|
<name>Maven Gump Plug-in</name>
|
||||||
<currentVersion>1.3</currentVersion>
|
<currentVersion>1.4-SNAPSHOT</currentVersion>
|
||||||
<description/>
|
<description/>
|
||||||
<shortDescription>produce Gump descriptor</shortDescription>
|
<shortDescription>produce Gump descriptor</shortDescription>
|
||||||
<url>http://maven.apache.org/reference/plugins/gump/</url>
|
<url>http://maven.apache.org/reference/plugins/gump/</url>
|
||||||
|
|||||||
@ -24,6 +24,10 @@
|
|||||||
<author email="dion@multitask.com.au">dIon Gillard</author>
|
<author email="dion@multitask.com.au">dIon Gillard</author>
|
||||||
</properties>
|
</properties>
|
||||||
<body>
|
<body>
|
||||||
|
<release version="1.4-SNAPSHOT" date="in CVS">
|
||||||
|
<action dev="brett" type="add" issue="MPGUMP-1">Allow creation of <maven descriptor element, and default to it</action>
|
||||||
|
<action dev="brett" type="add">Add maven.gump.ant.target and maven.gump.maven.goal properties</action>
|
||||||
|
</release>
|
||||||
<release version="1.3" date="2004-05-15"></release>
|
<release version="1.3" date="2004-05-15"></release>
|
||||||
<release version="1.2" date="2003-09-29">
|
<release version="1.2" date="2003-09-29">
|
||||||
<action dev="dion" type="fix">gump.xml generated into basedir</action>
|
<action dev="dion" type="fix">gump.xml generated into basedir</action>
|
||||||
|
|||||||
@ -33,6 +33,34 @@
|
|||||||
</p>
|
</p>
|
||||||
<table>
|
<table>
|
||||||
<tr><th>Property</th><th>Optional?</th><th>Description</th></tr>
|
<tr><th>Property</th><th>Optional?</th><th>Description</th></tr>
|
||||||
|
<tr>
|
||||||
|
<td>maven.gump.ant.generate</td>
|
||||||
|
<td>Yes</td>
|
||||||
|
<td>
|
||||||
|
Set to true to generate an ant element. By default, none is added to the descriptor.
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>maven.gump.maven.generate</td>
|
||||||
|
<td>Yes</td>
|
||||||
|
<td>
|
||||||
|
Set to false to not generate a maven element. By default, a maven element is added to the descriptor.
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>maven.gump.ant.target</td>
|
||||||
|
<td>Yes</td>
|
||||||
|
<td>
|
||||||
|
The target to execute. Defaults to dist.
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>maven.gump.maven.goals</td>
|
||||||
|
<td>Yes</td>
|
||||||
|
<td>
|
||||||
|
The goals to execute. Defaults to jar.
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>pom.dependencies</td>
|
<td>pom.dependencies</td>
|
||||||
<td>Yes</td>
|
<td>Yes</td>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user