dion        2003/10/07 22:02:11

  Modified:    src/plugins-build/plugin plugin.jelly
  Log:
  Fix for MAVEN-907.
  Add plugin:uninstall goal
  
  Revision  Changes    Path
  1.23      +9 -5      maven/src/plugins-build/plugin/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/plugin/plugin.jelly,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- plugin.jelly      3 Oct 2003 05:29:14 -0000       1.22
  +++ plugin.jelly      8 Oct 2003 05:02:11 -0000       1.23
  @@ -18,16 +18,20 @@
   
     </goal>
   
  -  <goal name="plugin:install" prereqs="plugin"
  +  <goal name="plugin:install" prereqs="plugin,plugin:uninstall"
       description="Install the plugin jar, prepare Maven to expand it locally and 
clear caches">
   
       <copy file="${maven.build.dir}/${maven.final.name}.jar"
         todir="${maven.home}/plugins"/>
   
  +  </goal>
  +
  +  <goal name="plugin:uninstall" 
  +    description="Uninstall all versions of the plugin">
  +    
       <delete verbose="false">
         <fileset dir="${maven.home}/plugins">
           <include name="${pom.artifactId}-*.jar" />
  -        <exclude name="${maven.final.name}.jar" />
         </fileset>
       </delete>
   
  @@ -36,10 +40,9 @@
           <include name="*.cache"/>
           <include name="**/.processed" />
           <include name="${pom.artifactId}-*/**" />
  -        <exclude name="${maven.final.name}.jar" />
         </fileset>
       </delete>
  -
  +    
     </goal>
   
     <goal name="plugin:deploy" prereqs="plugin"
  @@ -171,7 +174,7 @@
     </goal>
     
     <!-- download a plugin from a remote repo -->
  -  <goal name="plugin:download">
  +  <goal name="plugin:download" description="download a plugin from a remote repo">
       <maven:param-check value="${artifactId}" fail="true" message="'artifactId' must 
be specified"/>
       <maven:param-check value="${groupId}" fail="true" message="'groupId' must be 
specified"/>
       <maven:param-check value="${version}" fail="true" message="'version' must be 
specified"/>
  @@ -211,6 +214,7 @@
       </j:if>
       <j:if test="${downloaded}">
         <echo>Plugin downloaded, removing other versions</echo>
  +
         <delete verbose="false">
           <fileset dir="${maven.home}/plugins">
             <include name="${artifactId}-*.jar" />
  
  
  

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

Reply via email to