You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2009/02/19 11:07:06 UTC
svn commit: r745802 -
/servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ComponentInstaller.java
Author: gnodet
Date: Thu Feb 19 10:07:06 2009
New Revision: 745802
URL: http://svn.apache.org/viewvc?rev=745802&view=rev
Log:
Fix component classloader to be able to load from directories and not only jars
Modified:
servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ComponentInstaller.java
Modified: servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ComponentInstaller.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ComponentInstaller.java?rev=745802&r1=745801&r2=745802&view=diff
==============================================================================
--- servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ComponentInstaller.java (original)
+++ servicemix/smx4/nmr/trunk/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/impl/ComponentInstaller.java Thu Feb 19 10:07:06 2009
@@ -224,7 +224,7 @@
URL[] urls = new URL[classPathNames.length];
for (int i = 0; i < classPathNames.length; i++) {
File f = new File(installRoot, classPathNames[i]);
- if (!f.isFile()) {
+ if (!f.exists()) {
throw new IllegalArgumentException("Component classpath entry not found: '" + classPathNames[i] + "'");
}
try {