summaryrefslogtreecommitdiffstats
path: root/branches/sca-equinox/tools/maven
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2008-11-07 21:27:12 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2008-11-07 21:27:12 +0000
commit66fd5aa3a78244002093df0828622e8fca4937ce (patch)
treed2be62100621d5ce6aa0ff94a66649d3f6bed680 /branches/sca-equinox/tools/maven
parent39faed1fc3f4d1c164929b8b171c49ae30d0497e (diff)
Test if the classpath entry exists
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@712270 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-equinox/tools/maven')
-rw-r--r--branches/sca-equinox/tools/maven/maven-eclipse-compiler/src/main/java/org/apache/tuscany/sca/tools/maven/compiler/JavaCompiler.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/branches/sca-equinox/tools/maven/maven-eclipse-compiler/src/main/java/org/apache/tuscany/sca/tools/maven/compiler/JavaCompiler.java b/branches/sca-equinox/tools/maven/maven-eclipse-compiler/src/main/java/org/apache/tuscany/sca/tools/maven/compiler/JavaCompiler.java
index d3bfac5810..956817ff47 100644
--- a/branches/sca-equinox/tools/maven/maven-eclipse-compiler/src/main/java/org/apache/tuscany/sca/tools/maven/compiler/JavaCompiler.java
+++ b/branches/sca-equinox/tools/maven/maven-eclipse-compiler/src/main/java/org/apache/tuscany/sca/tools/maven/compiler/JavaCompiler.java
@@ -84,7 +84,10 @@ public class JavaCompiler extends AbstractCompiler {
for (String entry : (List<String>)configuration.getClasspathEntries()) {
if (osgi) {
try {
- stateController.addBundle(new File(entry));
+ File cp = new File(entry);
+ if (cp.exists()) {
+ stateController.addBundle(cp);
+ }
} catch (BundleException e) {
getLogger().error(e.getMessage(), e);
}