fix narExtractionDirectory not set
### Motivation
When extract nar jars, the `narExtractionDirectory` not set by broker.conf directly, it using default hard code value.
### Modification
1. use the `narExtractionDirectory` passed by parameter.
@@ -147,7 +147,7 @@ public class NarClassLoader extends URLClassLoader {
public static NarClassLoader getFromArchive(File narPath, Set<String> additionalJars,
String narExtractionDirectory) throws IOException {
return NarClassLoader.getFromArchive(narPath, additionalJars, NarClassLoader.class.getClassLoader(),
- NarClassLoader.DEFAULT_NAR_EXTRACTION_DIR);
+ narExtractionDirectory);
}
public static NarClassLoader getFromArchive(File narPath, Set<String> additionalJars) throws IOException {
