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

cvs commit: maven-components/maven-plugins/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin BeanGeneratorMojo.java JellyGeneratorMojo.java DescriptorGenerator.java

jvanzyl     2004/06/14 22:27:03

  Modified:    maven-plugins/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin
                        DescriptorGenerator.java
  Added:       maven-plugins/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin
                        BeanGeneratorMojo.java JellyGeneratorMojo.java
  Log:
  o adding mojos for the generation of the bean adapter and jelly harness. we
    want to start generating these things for the mojos in the mojo project.
  
    Jeremy, I will test these tomorrow but if you want to give them a shot
    go for it and I will clean up whatever is necessary to make them work
    in m1 for the g build.
  
  Revision  Changes    Path
  1.4       +2 -2      maven-components/maven-plugins/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/DescriptorGenerator.java
  
  Index: DescriptorGenerator.java
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-plugins/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/DescriptorGenerator.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DescriptorGenerator.java	14 Jun 2004 12:36:47 -0000	1.3
  +++ DescriptorGenerator.java	15 Jun 2004 05:27:03 -0000	1.4
  @@ -18,7 +18,7 @@
    *  name="outputDirectory"
    *  type="String"
    *  required="true" 
  - *  validator="" *
  + *  validator="" 
    *  expression="#project.build.directory/classes/META-INF/maven"
    *  description=""
    * @parameter
  
  
  
  1.1                  maven-components/maven-plugins/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/BeanGeneratorMojo.java
  
  Index: BeanGeneratorMojo.java
  ===================================================================
  package org.apache.maven.plugin.plugin;
  
  import org.apache.maven.plugin.generator.BeanGenerator;
  
  /**
   * @goal bean
   *
   * @description Goal for generating a plugin descriptor.
   *
   * @parameter
   *  name="sourceDirectory"
   *  type="String"
   *  required="true"
   *  validator=""
   *  expression="#project.build.sourceDirectory"
   *  description=""
   * @parameter
   *  name="outputDirectory"
   *  type="String"
   *  required="true" 
   *  validator=""
   *  expression="#project.build.directory/generated-sources"
   *  description=""
   * @parameter
   *  name="pom"
   *  type="String"
   *  required="true"
   *  validator=""
   *  expression="#project.getFile().getPath()"
   *  description=""
   *
   * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
   * @version $Id: BeanGeneratorMojo.java,v 1.1 2004/06/15 05:27:03 jvanzyl Exp $
   */
  public class BeanGeneratorMojo
      extends AbstractPluginMojo
  {
      protected void generate( String sourceDirectory, String outputDirectory, String pom )
          throws Exception
      {
          BeanGenerator generator = new BeanGenerator();
  
          generator.execute( sourceDirectory, outputDirectory, pom );
      }
  }
  
  
  
  1.1                  maven-components/maven-plugins/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/JellyGeneratorMojo.java
  
  Index: JellyGeneratorMojo.java
  ===================================================================
  package org.apache.maven.plugin.plugin;
  
  import org.apache.maven.plugin.generator.jelly.JellyHarnessGenerator;
  
  /**
   * @goal jelly
   *
   * @description Goal for generating a plugin descriptor.
   *
   * @parameter
   *  name="sourceDirectory"
   *  type="String"
   *  required="true"
   *  validator=""
   *  expression="#project.build.sourceDirectory"
   *  description=""
   * @parameter
   *  name="outputDirectory"
   *  type="String"
   *  required="true" 
   *  validator=""
   *  expression="#project.build.output
   *  description=""
   * @parameter
   *  name="pom"
   *  type="String"
   *  required="true"
   *  validator=""
   *  expression="#project.getFile().getPath()"
   *  description=""
   *
   * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
   * @version $Id: JellyGeneratorMojo.java,v 1.1 2004/06/15 05:27:03 jvanzyl Exp $
   */
  public class JellyGeneratorMojo
      extends AbstractPluginMojo
  {
      protected void generate( String sourceDirectory, String outputDirectory, String pom )
          throws Exception
      {
          JellyHarnessGenerator generator = new JellyHarnessGenerator();
  
          generator.execute( sourceDirectory, outputDirectory, pom );
      }
  }