camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1164972 - /camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultPackageScanClassResolver.java
Date Sun, 04 Sep 2011 08:48:21 GMT
Author: ningjiang
Date: Sun Sep  4 08:48:21 2011
New Revision: 1164972

URL: http://svn.apache.org/viewvc?rev=1164972&view=rev
Log:
CAMEL-4411 DefaultPackageScanClassResolver should skip the bundleresource url when it try
to find the classes with package name

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultPackageScanClassResolver.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultPackageScanClassResolver.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultPackageScanClassResolver.java?rev=1164972&r1=1164971&r2=1164972&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultPackageScanClassResolver.java
(original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultPackageScanClassResolver.java
Sun Sep  4 08:48:21 2011
@@ -265,6 +265,12 @@ public class DefaultPackageScanClassReso
                     continue;
                 }
 
+                // bundle resource should be skipped
+                if (url.toString().startsWith("bundleresource:") || urlPath.startsWith("bundleresource:"))
{
+                    log.trace("Skipping bundleresource: {}", url);
+                    continue;
+                }
+
                 // Else it's in a JAR, grab the path to the jar
                 if (urlPath.indexOf('!') > 0) {
                     urlPath = urlPath.substring(0, urlPath.indexOf('!'));



Mime
View raw message