jvanzyl     2004/04/02 10:37:43

  Modified:    maven-core/src/main/java/org/apache/maven Maven.java
  Log:
  o allow information about goals and plugins to be accessed for help and integration 
purposes.
  
  Revision  Changes    Path
  1.5       +25 -1     
maven-components/maven-core/src/main/java/org/apache/maven/Maven.java
  
  Index: Maven.java
  ===================================================================
  RCS file: 
/home/cvs/maven-components/maven-core/src/main/java/org/apache/maven/Maven.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Maven.java        2 Apr 2004 18:31:02 -0000       1.4
  +++ Maven.java        2 Apr 2004 18:37:43 -0000       1.5
  @@ -16,8 +16,12 @@
    * limitations under the License.
    */
   
  +import org.apache.maven.plugin.descriptor.PluginDescriptor;
  +import org.apache.maven.plugin.descriptor.GoalDescriptor;
  +
   import java.io.File;
   import java.util.List;
  +import java.util.Map;
   
   /**
    *
  @@ -30,9 +34,29 @@
   {
       static String ROLE = Maven.class.getName();
   
  +    // ----------------------------------------------------------------------
  +    // Goal attainment
  +    // ----------------------------------------------------------------------
  +
       void attainGoal( String goal )
           throws Exception;
   
       void attainGoal( File project, String goal )
           throws Exception;
  +
  +    // ----------------------------------------------------------------------
  +    // Plugin descriptors
  +    // ----------------------------------------------------------------------
  +
  +    Map getPluginDescriptors();
  +
  +    PluginDescriptor getPluginDescriptor( String pluginId );
  +
  +    // ----------------------------------------------------------------------
  +    // Goal descriptors
  +    // ----------------------------------------------------------------------
  +
  +    Map getGoalDescriptors();
  +
  +    GoalDescriptor getGoalDescriptor( String goalId );
   }
  
  
  

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

Reply via email to