diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-04-10 17:36:07 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-04-10 17:36:07 +0000 |
commit | 1a73ab88104f97f91b23da408a4b8fe0339550a9 (patch) | |
tree | ecc7d5a593dead2aa4251bf4d836a2de0040dc8a /maven-plugins/trunk/maven-bundle-plugin/src/main | |
parent | e93a1e42e95eb0f82d877b9e2c24a482b85cf8f8 (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.java | 4 |
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("/"); |