We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e1600fe + 443b62d commit 294ec7bCopy full SHA for 294ec7b
modules/cbjavaloader/ModuleConfig.cfc
@@ -96,11 +96,12 @@ component {
96
if( isArray( javaLoaderDSL.loadPaths ) ){
97
var aJarPaths = [];
98
for( var thisLocation in javaLoaderDSL.loadPaths ){
99
- if( !directoryExists( thisLocation ) ){
100
- throw( "Cannot load #thisLocation# as it is not a valid path" );
+ if( directoryExists( thisLocation ) ) {
+ aJarPaths.addAll( getJars( thisLocation ) )
101
+ } else if ( !fileExists( thisLocation ) ) {
102
+ throw( "Cannot load #thisLocation# as it is not a valid path or file" );
103
}
- aJarPaths.addAll( getJars( thisLocation ) );
- }
104
+ }
105
javaLoaderDSL.loadPaths = aJarPaths;
106
107
// Single directory? Get all Jars in it
0 commit comments