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 DefaultMaven.java
Date Thu, 07 Apr 2005 16:43:53 GMT
brett       2005/04/07 09:43:53

  Modified:    maven-core/src/main/java/org/apache/maven Tag:
                        MAVEN-2_0-ALPHA_1-branch DefaultMaven.java
  Log:
  output an error if no goals are specified
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.44.2.1  +7 -2      maven-components/maven-core/src/main/java/org/apache/maven/DefaultMaven.java
  
  Index: DefaultMaven.java
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-core/src/main/java/org/apache/maven/DefaultMaven.java,v
  retrieving revision 1.44
  retrieving revision 1.44.2.1
  diff -u -r1.44 -r1.44.2.1
  --- DefaultMaven.java	1 Apr 2005 02:53:10 -0000	1.44
  +++ DefaultMaven.java	7 Apr 2005 16:43:53 -0000	1.44.2.1
  @@ -83,6 +83,11 @@
   
       public MavenExecutionResponse execute( MavenExecutionRequest request ) throws ReactorException
       {
  +        if ( request.getGoals().isEmpty() )
  +        {
  +            throw new ReactorException( "You must specify at least one goal. Try 'install'."
);
  +        }
  +
           EventDispatcher dispatcher = request.getEventDispatcher();
           String event = MavenEvents.REACTOR_EXECUTION;
   
  @@ -405,4 +410,4 @@
               return secs + " seconds";
           }
       }
  -}
  \ No newline at end of file
  +}
  
  
  

Mime
View raw message