Skip to content

Commit

Permalink
fix narExtractionDirectory not set (apache#9319)
Browse files Browse the repository at this point in the history
### 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.
  • Loading branch information
hangc0276 authored Feb 3, 2021
1 parent 2b8615c commit fa41d02
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fa41d02

Please sign in to comment.