aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject svn commit: r1746720 - /aries/trunk/blueprint/blueprint-maven-plugin/src/main/java/org/apache/aries/blueprint/plugin/GenerateMojo.java
Date Fri, 03 Jun 2016 14:22:17 GMT
Author: cschneider
Date: Fri Jun  3 14:22:17 2016
New Revision: 1746720

URL: http://svn.apache.org/viewvc?rev=1746720&view=rev
Log:
Check for null in scanPaths

Modified:
    aries/trunk/blueprint/blueprint-maven-plugin/src/main/java/org/apache/aries/blueprint/plugin/GenerateMojo.java

Modified: aries/trunk/blueprint/blueprint-maven-plugin/src/main/java/org/apache/aries/blueprint/plugin/GenerateMojo.java
URL: http://svn.apache.org/viewvc/aries/trunk/blueprint/blueprint-maven-plugin/src/main/java/org/apache/aries/blueprint/plugin/GenerateMojo.java?rev=1746720&r1=1746719&r2=1746720&view=diff
==============================================================================
--- aries/trunk/blueprint/blueprint-maven-plugin/src/main/java/org/apache/aries/blueprint/plugin/GenerateMojo.java
(original)
+++ aries/trunk/blueprint/blueprint-maven-plugin/src/main/java/org/apache/aries/blueprint/plugin/GenerateMojo.java
Fri Jun  3 14:22:17 2016
@@ -71,6 +71,9 @@ public class GenerateMojo extends Abstra
     protected String generatedFileName;
 
     public void execute() throws MojoExecutionException, MojoFailureException {
+        if (scanPaths.size() == 0 || scanPaths.iterator().next() == null) {
+            throw new MojoExecutionException("Configuration scanPaths must be set");
+        }
         if (!buildContext.hasDelta(new File(project.getCompileSourceRoots().iterator().next())))
{
             return;
         }



Mime
View raw message