o add goal to create an artifact upload bundle
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114566 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -105,9 +105,32 @@
|
||||
<u:tokenize var="snapAndJar" delim=".">${jarDotBits[size(jarDotBits)-1]}</u:tokenize>
|
||||
<j:set var="${var}" value="${snapAndJar[0]}.${snapAndJar[1]}" scope="parent"/>
|
||||
</define:tag>
|
||||
|
||||
|
||||
</define:taglib>
|
||||
|
||||
<goal name="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"/>
|
||||
|
||||
<ant:jar
|
||||
jarfile="${maven.build.dir}/${maven.final.name}-bundle.jar"
|
||||
basedir="${maven.build.dir}/bundle"/>
|
||||
|
||||
</goal>
|
||||
|
||||
<goal name="repository:audit-create-licenses"
|
||||
description="create the license directories, for all groups in the audit file, in the repository">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user