PR: MPARTIFACT-64

Import create-upload-bundle goal from repository-plugin,
rename to artifact:create-upload-bundle.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@373952 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
ltheussl
2006-02-01 00:41:31 +00:00
parent 2066e7d8b7
commit 81c5dac190
3 changed files with 62 additions and 0 deletions

View File

@@ -182,6 +182,49 @@
</ant:echo>
</goal>
<goal name="artifact:create-upload-bundle">
<!-- Create the artifact in question. -->
<attainGoal name="jar:jar"/>
<!-- Delete/create the bundle holding tank -->
<ant:delete dir="${maven.build.dir}/bundle"/>
<ant:mkdir dir="${maven.build.dir}/bundle"/>
<!-- Copy in the artifact -->
<ant:copy file="${maven.build.dir}/${maven.final.name}.jar" todir="${maven.build.dir}/bundle"/>
<!-- Copy in the POM -->
<ant:copy file="${basedir}/project.xml" todir="${maven.build.dir}/bundle"/>
<!-- Copy in the license, if there is no license this will fail. -->
<ant:copy file="${basedir}/LICENSE.txt" todir="${maven.build.dir}/bundle"/>
<!-- Add sources -->
<ant:jar jarfile="${maven.build.dir}/bundle/${maven.final.name}-sources.jar">
<util:tokenize var="sources_dirs" delim="${path.separator}">${context.getAntProject().getReferences().get('maven.compile.src.set')}</util:tokenize>
<j:forEach var="dir" items="${sources_dirs}">
<ant:fileset dir="${dir}" />
</j:forEach>
<ant:manifest>
<ant:attribute name="Built-By" value="${user.name}"/>
<ant:attribute name="Created-By" value="Apache 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-Vendor" value="${pom.organization.name}"/>
<ant:attribute name="Implementation-Title" value="${pom.package}"/>
<ant:attribute name="Implementation-Vendor" value="${pom.organization.name}"/>
<ant:attribute name="Implementation-Version" value="${pom.currentVersion}"/>
</ant:manifest>
</ant:jar>
<ant:jar
jarfile="${maven.build.dir}/${maven.final.name}-bundle.jar"
basedir="${maven.build.dir}/bundle"/>
</goal>
<!-- ================================================================== -->
<!-- D E P L O Y A R T I F A C T T A G -->
<!-- ================================================================== -->

View File

@@ -25,6 +25,7 @@
</properties>
<body>
<release version="1.8-SNAPSHOT" date="In SVN">
<action dev="ltheussl" type="add" issue="MPARTIFACT-64">New goal <code>artifact:create-upload-bundle</code> that replaces deprecated <code>create-upload-bundle</code>.</action>
<action dev="aheritier" type="update" issue="MAVEN-1739">Upgrade to HttpClient 3.0.</action>
</release>
<release version="1.7" date="2005-12-12">

18
artifact/xdocs/goals.xml Normal file
View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<document>
<properties>
<title>Maven Artifact Plugin Goals</title>
</properties>
<body>
<goals>
<goal>
<name>artifact:create-upload-bundle</name>
<description>
Create a bundle that can be uploaded to ibiblio.
(Replaces the deprecated <code>create-upload-bundle</code> used in Maven 1.0).
</description>
</goal>
</goals>
</body>
</document>