tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rf...@apache.org
Subject svn commit: r712270 - /tuscany/branches/sca-equinox/tools/maven/maven-eclipse-compiler/src/main/java/org/apache/tuscany/sca/tools/maven/compiler/JavaCompiler.java
Date Fri, 07 Nov 2008 21:27:12 GMT
Author: rfeng
Date: Fri Nov  7 13:27:12 2008
New Revision: 712270

URL: http://svn.apache.org/viewvc?rev=712270&view=rev
Log:
Test if the classpath entry exists

Modified:
    tuscany/branches/sca-equinox/tools/maven/maven-eclipse-compiler/src/main/java/org/apache/tuscany/sca/tools/maven/compiler/JavaCompiler.java

Modified: tuscany/branches/sca-equinox/tools/maven/maven-eclipse-compiler/src/main/java/org/apache/tuscany/sca/tools/maven/compiler/JavaCompiler.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-equinox/tools/maven/maven-eclipse-compiler/src/main/java/org/apache/tuscany/sca/tools/maven/compiler/JavaCompiler.java?rev=712270&r1=712269&r2=712270&view=diff
==============================================================================
--- tuscany/branches/sca-equinox/tools/maven/maven-eclipse-compiler/src/main/java/org/apache/tuscany/sca/tools/maven/compiler/JavaCompiler.java
(original)
+++ tuscany/branches/sca-equinox/tools/maven/maven-eclipse-compiler/src/main/java/org/apache/tuscany/sca/tools/maven/compiler/JavaCompiler.java
Fri Nov  7 13:27:12 2008
@@ -84,7 +84,10 @@
             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);
                     }



Mime
View raw message