Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,24 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>

<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.version>3.8.4</maven.version>
<maven.version>3.8.5</maven.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -180,7 +191,7 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>4.4.0</version>
<version>4.5.1</version>
<scope>test</scope>
</dependency>
<!-- endregion -->
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/io/github/maritims/node/NodeWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ public boolean extract() {

String destinationDirectory;
try {
destinationDirectory = new File(nodeConfiguration.getExtractionDirectory().toString()).getCanonicalPath();
destinationDirectory = nodeConfiguration.getExtractionDirectory().toFile().getCanonicalPath();
} catch (IOException e) {
log.error("Unable to get canonical path for extraction destination", e);
return false;
}

while(tarEntry != null) {
Path path = Paths.get(destinationDirectory, tarEntry.getName());
File file = new File(path.toString());
File file = path.toFile();

if(tarEntry.isDirectory() && !file.exists() && !file.mkdirs()) {
log.error("Unable to create directory: " + path + ". Aborting.");
Expand Down