Merge pull request #83 from dougmorato/master
Fixing inconsistent merge issues implementing nbaars fixes
This commit is contained in:
commit
376a26c3fb
@ -17,8 +17,6 @@ import java.util.zip.ZipFile;
|
|||||||
/**
|
/**
|
||||||
* Extract the jar file and place them in the system temp directory in the folder webgoat and collect the files
|
* Extract the jar file and place them in the system temp directory in the folder webgoat and collect the files
|
||||||
* and classes.
|
* and classes.
|
||||||
*
|
|
||||||
* @version $Id: $Id
|
|
||||||
*/
|
*/
|
||||||
public class PluginExtractor {
|
public class PluginExtractor {
|
||||||
|
|
||||||
@ -36,10 +34,6 @@ public class PluginExtractor {
|
|||||||
boolean processed = processClassFile(zipEntry);
|
boolean processed = processClassFile(zipEntry);
|
||||||
|
|
||||||
if (!processed) {
|
if (!processed) {
|
||||||
* @param target a {@link java.nio.file.Path} object.
|
|
||||||
*/
|
|
||||||
public void extract(final Path target) {
|
|
||||||
try (FileSystem zip = createZipFileSystem()) {
|
|
||||||
processed = processPropertyFile(zipFile, zipEntry, targetDirectory);
|
processed = processPropertyFile(zipFile, zipEntry, targetDirectory);
|
||||||
}
|
}
|
||||||
if (!processed) {
|
if (!processed) {
|
||||||
@ -94,21 +88,11 @@ public class PluginExtractor {
|
|||||||
return targetFile;
|
return targetFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* <p>Getter for the field <code>classes</code>.</p>
|
|
||||||
*
|
|
||||||
* @return a {@link java.util.List} object.
|
|
||||||
*/
|
|
||||||
public List<String> getClasses() {
|
public List<String> getClasses() {
|
||||||
return this.classes;
|
return this.classes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* <p>Getter for the field <code>files</code>.</p>
|
|
||||||
*
|
|
||||||
* @return a {@link java.util.List} object.
|
|
||||||
*/
|
|
||||||
public List<Path> getFiles() {
|
public List<Path> getFiles() {
|
||||||
return this.files;
|
return this.files;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -92,11 +92,6 @@ public class LabelProvider {
|
|||||||
return Thread.currentThread().getContextClassLoader();
|
return Thread.currentThread().getContextClassLoader();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
|
||||||
* <p>refresh.</p>
|
|
||||||
*/
|
|
||||||
public static void refresh() {
|
|
||||||
pluginLabels.clearCache();
|
pluginLabels.clearCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user