Ignore not existing paths and does not show an error message.

This commit is contained in:
Volker Berlin 2021-03-27 13:31:29 +01:00
parent acd8a4ca9d
commit 43ae520d5a

View File

@ -104,7 +104,10 @@ public class WasmRule extends TemporaryFolder {
final String[] libraries = System.getProperty("java.class.path").split(File.pathSeparator);
for( String lib : libraries ) {
if( lib.endsWith( ".jar" ) || lib.toLowerCase().contains( "jwebassembly-api" ) ) {
compiler.addLibrary( new File(lib) );
File library = new File(lib);
if( library.exists() ) {
compiler.addLibrary( library );
}
}
}
}