jvanzyl     2004/05/20 10:03:45

  Modified:    maven-plugins/maven-clean-plugin project.xml
               maven-plugins/maven-clean-plugin/src/main/java/org/apache/maven/plugin
                        CleanPlugin.java
               maven-plugins/maven-clean-plugin/src/main/resources/META-INF/maven
                        plugin.xml
  Log:
  turn into a maven plugin and add @tags for descriptor generation.
  
  Revision  Changes    Path
  1.2       +0 -13     maven-components/maven-plugins/maven-clean-plugin/project.xml
  
  Index: project.xml
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-plugins/maven-clean-plugin/project.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- project.xml       20 Apr 2004 14:06:57 -0000      1.1
  +++ project.xml       20 May 2004 17:03:45 -0000      1.2
  @@ -12,17 +12,4 @@
     <currentVersion>1.0-SNAPSHOT</currentVersion>
     <inceptionYear>2001</inceptionYear>
     <package>org.apache.maven</package>
  -  <logo>/images/maven.gif</logo>
  -  <repository>
  -    <connection>scm:cvs:pserver:[EMAIL 
PROTECTED]:/home/cvspublic:maven-components/maven-plugins/maven-clean-plugin</connection>
  -    <developerConnection>scm:cvs:ext:[EMAIL 
PROTECTED]:/home/cvs:maven-components/maven-plugins/maven-clean-plugin</developerConnection>
  -    <url>http://cvs.apache.org/viewcvs.cgi/maven/</url>
  -  </repository>
  -  <dependencies>
  -    <dependency>
  -      <groupId>maven</groupId>
  -      <artifactId>maven-core</artifactId>
  -      <version>2.0-SNAPSHOT</version>
  -    </dependency>
  -  </dependencies>
   </project>
  
  
  
  1.3       +8 -6      
maven-components/maven-plugins/maven-clean-plugin/src/main/java/org/apache/maven/plugin/CleanPlugin.java
  
  Index: CleanPlugin.java
  ===================================================================
  RCS file: 
/home/cvs/maven-components/maven-plugins/maven-clean-plugin/src/main/java/org/apache/maven/plugin/CleanPlugin.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CleanPlugin.java  16 May 2004 04:38:32 -0000      1.2
  +++ CleanPlugin.java  20 May 2004 17:03:45 -0000      1.3
  @@ -19,14 +19,16 @@
   import java.io.File;
   
   /**
  - * @plugin.id clean
  - * @plugin.description A maven2 plugin which cleans the build
  - * @plugin.instantiation singleton
  - * @plugin.mode integrated
  + * @maven.plugin.id clean
  + * @maven.plugin.description A maven2 plugin which cleans the build
  + *
  + * @parameter failedOnError String true validator description
  + * @parameter outputDirectory String true validator description
    *
    * @goal.name clean
  + * @goal.clean.description Goal which cleans the build
    * @goal.clean.parameter failedOnError false
  - * @goal.clean.outputDirectory #maven.build.dir
  + * @goal.clean.parameter outputDirectory #maven.build.dir
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Emmanuel Venisse</a>
    * @version $Id$
  
  
  
  1.2       +19 -2     
maven-components/maven-plugins/maven-clean-plugin/src/main/resources/META-INF/maven/plugin.xml
  
  Index: plugin.xml
  ===================================================================
  RCS file: 
/home/cvs/maven-components/maven-plugins/maven-clean-plugin/src/main/resources/META-INF/maven/plugin.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- plugin.xml        20 Apr 2004 14:06:57 -0000      1.1
  +++ plugin.xml        20 May 2004 17:03:45 -0000      1.2
  @@ -1,11 +1,28 @@
   <plugin>
     <id>clean</id>
     <implementation>org.apache.maven.plugin.CleanPlugin</implementation>
  -  <instantiation-strategy>singleton</instantiation-strategy>
  +  <instantiationStrategy>singleton</instantiationStrategy>
     <mode>integrated</mode>
  +  <parameters>
  +    <parameter>
  +      <name>failedOnError</name>
  +      <type>String</type>
  +      <required>false</required>
  +      <validator>validator</validator>
  +      <description>description </description>
  +    </parameter>
  +    <parameter>
  +      <name>outputDirectory</name>
  +      <type>String</type>
  +      <required>false</required>
  +      <validator>validator</validator>
  +      <description>description </description>
  +    </parameter>
  +  </parameters>
     <goals>
       <goal>
         <name>clean</name>
  +      <description>Goal which cleans the build</description>
         <parameters>
           <parameter>
             <name>failedOnError</name>
  @@ -18,4 +35,4 @@
         </parameters>
       </goal>
     </goals>
  -</plugin>
  +</plugin>
  \ No newline at end of file
  
  
  

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

Reply via email to