summaryrefslogtreecommitdiffstats
path: root/maven-plugins/trunk/maven-bundle-plugin/src/main
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-04-10 17:36:07 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-04-10 17:36:07 +0000
commit1a73ab88104f97f91b23da408a4b8fe0339550a9 (patch)
treeecc7d5a593dead2aa4251bf4d836a2de0040dc8a /maven-plugins/trunk/maven-bundle-plugin/src/main
parente93a1e42e95eb0f82d877b9e2c24a482b85cf8f8 (diff)
Add a check to test if a file exists
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@763985 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'maven-plugins/trunk/maven-bundle-plugin/src/main')
-rw-r--r--maven-plugins/trunk/maven-bundle-plugin/src/main/java/org/apache/tuscany/maven/bundle/plugin/BundleUtil.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/maven-plugins/trunk/maven-bundle-plugin/src/main/java/org/apache/tuscany/maven/bundle/plugin/BundleUtil.java b/maven-plugins/trunk/maven-bundle-plugin/src/main/java/org/apache/tuscany/maven/bundle/plugin/BundleUtil.java
index 919b465d09..68166931fa 100644
--- a/maven-plugins/trunk/maven-bundle-plugin/src/main/java/org/apache/tuscany/maven/bundle/plugin/BundleUtil.java
+++ b/maven-plugins/trunk/maven-bundle-plugin/src/main/java/org/apache/tuscany/maven/bundle/plugin/BundleUtil.java
@@ -123,6 +123,10 @@ final class BundleUtil {
StringBuffer classpath = new StringBuffer();
Set<String> exportedPackages = new HashSet<String>();
for (File jarFile : jarFiles) {
+ if (!jarFile.exists()) {
+ logger.warning(jarFile + " doesn't exist.");
+ continue;
+ }
addPackages(jarFile, exportedPackages, version);
if (dir != null) {
classpath.append(dir).append("/");