private void addJarFileUrl ( String jarFile ) { if ( jarUrls == null ) { jarUrls = new HashSet < URL > ( ) ; } try { jarUrls . add ( new File ( jarFile ) . toURI ( ) . toURL ( ) ) ; } catch ( MalformedURLException e ) { log . error ( "Error while mapping jar-file url" + jarFile + "caused by:" + e . getMessage ( ) ) ; throw new IllegalArgumentException ( "Invalid jar-file URL:" + jarFile + "Caused by: " + e ) ; } }
Adds jar file URL .