Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only load files ending with '.jar' as workspace module #134

Merged
merged 1 commit into from
Jul 2, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,15 @@ private void initClassloader() {
if ( fs[i].isFile() ) {
try {
URL url = fs[i].toURI().toURL();
urls.add( url );
ModuleInfo moduleInfo = ModuleInfo.extractModuleInfo( url );
if ( moduleInfo != null ) {
LOG.info( " - " + moduleInfo );
wsModules.add( moduleInfo );
} else {
LOG.info( " - " + fs[i] + " (non-deegree)" );
if ( url.getFile().endsWith( ".jar" ) ) {
urls.add( url );
ModuleInfo moduleInfo = ModuleInfo.extractModuleInfo( url );
if ( moduleInfo != null ) {
LOG.info( " - " + moduleInfo );
wsModules.add( moduleInfo );
} else {
LOG.info( " - " + fs[i] + " (non-deegree)" );
}
}
} catch ( Exception e ) {
LOG.warn( "Module {} could not be loaded: {}", fs[i].getName(), e.getLocalizedMessage() );
Expand Down