New <code>cactus:jar</code> goal to generate a jar containing the Cactus test classes. This is useful if you wish to put Cactus test classes in one Maven project and execute the Cactus tests in another project.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113997 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
vmassol 2003-09-11 12:04:01 +00:00
parent 28d912a251
commit 3896be5639
3 changed files with 42 additions and 0 deletions

View File

@ -170,6 +170,34 @@
</goal>
<!--
========================================================================
Generate a jar containing Cactus tests classes.
========================================================================
-->
<goal name="cactus:jar" prereqs="cactus:compile"
description="Generate a Cactus jar">
<ant:jar
jarfile="${maven.build.dir}/${pom.artifactId}-cactus-${pom.currentVersion}.jar"
basedir="${cactus.target.classes.dir}">
<ant:manifest>
<ant:attribute name="Built-By" value="${user.name}"/>
<ant:attribute name="Created-By" value="Apache Jakarta Maven"/>
<ant:attribute name="Package" value="${pom.package}"/>
<ant:attribute name="Build-Jdk" value="${java.version}"/>
<ant:attribute name="Extension-Name" value="${pom.artifactId}"/>
<ant:attribute name="Specification-Version" value="${pom.specificationVersion}"/>
<ant:attribute name="Specification-Vendor" value="${pom.organization.name}"/>
<ant:attribute name="Specification-Title" value="${pom.shortDescription}"/>
<ant:attribute name="Implementation-Version" value="${pom.currentVersion}"/>
<ant:attribute name="Implementation-Vendor" value="${pom.organization.name}"/>
<ant:attribute name="Implementation-Vendor-Id" value="${pom.organization.identifier}"/>
</ant:manifest>
</ant:jar>
</goal>
<!--
========================================================================
Cactify an application war.

View File

@ -8,6 +8,12 @@
<body>
<release version="3.1" date="in CVS">
<action dev="vmassol" type="add">
New <code>cactus:jar</code> goal to generate a jar containing
the Cactus test classes. This is useful if you wish to put Cactus
test classes in one Maven project and execute the Cactus tests in
another project.
</action>
<action dev="vmassol" type="add">
Added new <code>cactus.tmp.dir</code> optional property to specify
a location where Cactus will put its temporary files (mostly where

View File

@ -59,6 +59,14 @@
]]></source>
</description>
</goal>
<goal>
<name>cactus:jar</name>
<description>
Generate a jar containing the Cactus test classes. This is
useful if you wish to put Cactus test classes in one Maven
project and execute the Cactus tests in another Maven project.
</description>
</goal>
</goals>
</body>
</document>