You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by jv...@apache.org on 2004/01/07 04:24:12 UTC

cvs commit: maven-plugins/repository plugin.jelly

jvanzyl     2004/01/06 19:24:12

  Modified:    repository plugin.jelly
  Log:
  o add goal to create an artifact upload bundle
  
  Revision  Changes    Path
  1.23      +24 -1     maven-plugins/repository/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/maven-plugins/repository/plugin.jelly,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- plugin.jelly	31 Jul 2003 05:17:11 -0000	1.22
  +++ plugin.jelly	7 Jan 2004 03:24:12 -0000	1.23
  @@ -105,8 +105,31 @@
         <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">
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org