You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2007/09/24 16:53:09 UTC
svn commit: r578844 -
/incubator/sling/trunk/maven-sling-plugin/src/main/java/org/apache/sling/maven/bundlesupport/AbstractBundlePostMojo.java
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;