vmassol     2003/09/11 05:14:10

  Modified:    src/plugins-build/cactus/xdocs changes.xml goals.xml
               src/plugins-build/cactus plugin.jelly
  Log:
  New <code>cactus:jar-install</code> goal to install the Cactus jar in the local 
Maven repository. This is useful if you wish to put Cactus test classes in one Maven 
project and execute the Cactus tests in another project.
  
  Revision  Changes    Path
  1.28      +7 -3      maven/src/plugins-build/cactus/xdocs/changes.xml
  
  Index: changes.xml
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/cactus/xdocs/changes.xml,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- changes.xml       11 Sep 2003 12:04:01 -0000      1.27
  +++ changes.xml       11 Sep 2003 12:14:10 -0000      1.28
  @@ -9,10 +9,14 @@
   
       <release version="3.1" date="in CVS">
         <action dev="vmassol" type="add">
  +        New <code>cactus:jar-install</code> goal to install the Cactus
  +        jar in the local Maven repository. 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">
           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.
  +        the Cactus test classes. 
         </action>
         <action dev="vmassol" type="add">
           Added new <code>cactus.tmp.dir</code> optional property to specify
  
  
  
  1.9       +7 -1      maven/src/plugins-build/cactus/xdocs/goals.xml
  
  Index: goals.xml
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/cactus/xdocs/goals.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- goals.xml 11 Sep 2003 12:04:01 -0000      1.8
  +++ goals.xml 11 Sep 2003 12:14:10 -0000      1.9
  @@ -62,7 +62,13 @@
         <goal>
           <name>cactus:jar</name>
           <description>
  -          Generate a jar containing the Cactus test classes. This is 
  +          Generate a jar containing the Cactus test classes.
  +        </description>
  +      </goal>
  +      <goal>
  +        <name>cactus:jar</name>
  +        <description>
  +          Deploy the Cactus jar to the local Maven repository. 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>
  
  
  
  1.37      +23 -0     maven/src/plugins-build/cactus/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/cactus/plugin.jelly,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- plugin.jelly      11 Sep 2003 12:04:01 -0000      1.36
  +++ plugin.jelly      11 Sep 2003 12:14:10 -0000      1.37
  @@ -753,4 +753,27 @@
       </define:tag>
     </define:taglib>
   
  +  <!--
  +     ========================================================================
  +       Install the Cactus jar in the local repository.
  +     ========================================================================
  +  -->
  +  <goal name="cactus:jar-install" prereqs="cactus:jar"
  +    description="Install the Cactus jar in the local repository">
  +    
  +    <ant:echo>
  +    id = '${pom.artifactId}'
  +    groupId = '${pom.groupId}'
  +    artifactDirectory = '${pom.artifactDirectory}'
  +    </ant:echo>
  +    
  +    <ant:property name="jardir__" 
value="${maven.repo.local}/${pom.artifactDirectory}/jars"/>
  +    <ant:mkdir dir="${jardir__}"/>    
  +    <ant:copy 
  +      file="${maven.build.dir}/${pom.artifactId}-cactus-${pom.currentVersion}.jar"
  +      todir="${jardir__}"
  +      overwrite="true"
  +    />
  +  </goal>
  +
   </project>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to