You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ju...@apache.org on 2012/09/27 18:54:21 UTC

svn commit: r1391097 - /sling/trunk/maven/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundleInstallMojo.java

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");