geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r440507 - /geronimo/genesis/trunk/plugins/maven-maven-plugin/src/main/java/org/apache/geronimo/genesis/plugins/maven/InvokeMavenMojo.java
Date Tue, 05 Sep 2006 22:13:50 GMT
Author: jdillon
Date: Tue Sep  5 15:13:50 2006
New Revision: 440507

URL: http://svn.apache.org/viewvc?view=rev&rev=440507
Log:
Complain if no pom files were included in the fileset

Modified:
    geronimo/genesis/trunk/plugins/maven-maven-plugin/src/main/java/org/apache/geronimo/genesis/plugins/maven/InvokeMavenMojo.java

Modified: geronimo/genesis/trunk/plugins/maven-maven-plugin/src/main/java/org/apache/geronimo/genesis/plugins/maven/InvokeMavenMojo.java
URL: http://svn.apache.org/viewvc/geronimo/genesis/trunk/plugins/maven-maven-plugin/src/main/java/org/apache/geronimo/genesis/plugins/maven/InvokeMavenMojo.java?view=diff&rev=440507&r1=440506&r2=440507
==============================================================================
--- geronimo/genesis/trunk/plugins/maven-maven-plugin/src/main/java/org/apache/geronimo/genesis/plugins/maven/InvokeMavenMojo.java
(original)
+++ geronimo/genesis/trunk/plugins/maven-maven-plugin/src/main/java/org/apache/geronimo/genesis/plugins/maven/InvokeMavenMojo.java
Tue Sep  5 15:13:50 2006
@@ -103,6 +103,11 @@
         fileset.scan();
 
         String[] filenames = fileset.getIncludedFiles();
+
+        if (filenames.length == 0) {
+            throw new MojoExecutionException("At least one pom file must be included");
+        }
+        
         for (int i=0; i<filenames.length; i++) {
             invoke(new File(fileset.getBasedir(), filenames[i]));
         }



Mime
View raw message