incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jus...@apache.org
Subject svn commit: r1391097 - /sling/trunk/maven/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundleInstallMojo.java
Date Thu, 27 Sep 2012 16:54:21 GMT
Author: justin
Date: Thu Sep 27 16:54:20 2012
New Revision: 1391097

URL: http://svn.apache.org/viewvc?rev=1391097&view=rev
Log:
SLING-2607 - outputting better error message for missing file (thanks to Alexandre Collignon
for the patch!)

Modified:
    sling/trunk/maven/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundleInstallMojo.java

Modified: sling/trunk/maven/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundleInstallMojo.java
URL: http://svn.apache.org/viewvc/sling/trunk/maven/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundleInstallMojo.java?rev=1391097&r1=1391096&r2=1391097&view=diff
==============================================================================
--- sling/trunk/maven/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundleInstallMojo.java
(original)
+++ sling/trunk/maven/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundleInstallMojo.java
Thu Sep 27 16:54:20 2012
@@ -194,6 +194,12 @@ abstract class AbstractBundleInstallMojo
 
         // only upload if packaging as an osgi-bundle
         File bundleFile = new File(bundleFileName);
+
+        if(!bundleFile.exists()) {
+            getLog().info(bundleFile + " does not exist, no uploading");
+            return;
+        }
+
         String bundleName = getBundleSymbolicName(bundleFile);
         if (bundleName == null) {
             getLog().info(bundleFile + " is not an OSGi Bundle, not uploading");



Mime
View raw message