maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: maven-components/maven-core/src/main/java/org/apache/maven/plugin DefaultPluginManager.java
Date Tue, 01 Mar 2005 04:03:24 GMT
brett       2005/02/28 20:03:24

  Modified:    maven-core/src/main/java/org/apache/maven/plugin
                        DefaultPluginManager.java
  Log:
  error handling
  
  Revision  Changes    Path
  1.34      +4 -0      maven-components/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java
  
  Index: DefaultPluginManager.java
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- DefaultPluginManager.java	27 Feb 2005 21:22:18 -0000	1.33
  +++ DefaultPluginManager.java	1 Mar 2005 04:03:24 -0000	1.34
  @@ -265,6 +265,10 @@
           PluginExecutionResponse response;
   
           MojoDescriptor mojoDescriptor = getMojoDescriptor( goalName );
  +        if ( mojoDescriptor == null )
  +        {
  +            throw new GoalExecutionException( "Unable to find goal: " + goalName );   
        
  +        }
   
           if ( mojoDescriptor.requiresDependencyResolution() )
           {
  
  
  

Mime
View raw message