incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r578844 - /incubator/sling/trunk/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundlePostMojo.java
Date Mon, 24 Sep 2007 14:53:09 GMT
Author: cziegeler
Date: Mon Sep 24 07:53:07 2007
New Revision: 578844

URL: http://svn.apache.org/viewvc?rev=578844&view=rev
Log:
Do not throw an exception if jar does not exist. This allows a multi project deploy with other
artifact types like poms, webapps etc.

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

Modified: incubator/sling/trunk/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundlePostMojo.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundlePostMojo.java?rev=578844&r1=578843&r2=578844&view=diff
==============================================================================
--- incubator/sling/trunk/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundlePostMojo.java
(original)
+++ incubator/sling/trunk/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundlePostMojo.java
Mon Sep 24 07:53:07 2007
@@ -47,13 +47,11 @@
      *         header is not contained in the manifest. However, if
      *         <code>null</code> is returned, the file may be assumed to not
      *         contain an OSGi bundle.
-     * @throws MojoExecutionException if the file does not exist
      */
-    protected String getBundleSymbolicName(File jarFile)
-            throws MojoExecutionException {
+    protected String getBundleSymbolicName(File jarFile) {
 
         if (!jarFile.exists()) {
-            throw new MojoExecutionException("Missing file " + jarFile);
+            return null;
         }
 
         JarFile jaf = null;



Mime
View raw message