changing language level to Java 7
This commit is contained in:
parent
6c83ee5cb1
commit
6aa3092761
4
pom.xml
4
pom.xml
@ -38,8 +38,8 @@
|
|||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>1.6</source>
|
<source>1.7</source>
|
||||||
<target>1.6</target>
|
<target>1.7</target>
|
||||||
<encoding>ISO-8859-1</encoding>
|
<encoding>ISO-8859-1</encoding>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
@ -36,9 +36,7 @@ public class PluginExtractor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void extract() {
|
public void extract() {
|
||||||
FileSystem zip = null;
|
try (FileSystem zip = createZipFileSystem()) {
|
||||||
try {
|
|
||||||
zip = createZipFileSystem();
|
|
||||||
final Path root = zip.getPath("/");
|
final Path root = zip.getPath("/");
|
||||||
baseDirectory = Paths.get(System.getProperty("java.io.tmpdir"), DIRECTORY);
|
baseDirectory = Paths.get(System.getProperty("java.io.tmpdir"), DIRECTORY);
|
||||||
Files.walkFileTree(root, new SimpleFileVisitor<Path>() {
|
Files.walkFileTree(root, new SimpleFileVisitor<Path>() {
|
||||||
@ -55,8 +53,6 @@ public class PluginExtractor {
|
|||||||
});
|
});
|
||||||
} catch (IOException io) {
|
} catch (IOException io) {
|
||||||
logger.error(String.format("Unable to extract: %s", pluginArchive.getFileName()), io);
|
logger.error(String.format("Unable to extract: %s", pluginArchive.getFileName()), io);
|
||||||
} finally {
|
|
||||||
closeZipFileSystem(zip);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user