Fix
Dieser Commit ist enthalten in:
Ursprung
bb80ee110d
Commit
634e931920
5
pom.xml
5
pom.xml
@ -92,5 +92,10 @@
|
||||
<artifactId>commons-lang</artifactId>
|
||||
<version>2.6</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-io</groupId>
|
||||
<artifactId>commons-io</artifactId>
|
||||
<version>2.11.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
@ -2,6 +2,7 @@ package de.chaos.swlnmngr.route.routes;
|
||||
|
||||
import de.chaos.swlnmngr.Main;
|
||||
import de.chaos.swlnmngr.config.Config;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
@ -36,7 +37,13 @@ public class LinkRoute implements Route {
|
||||
}
|
||||
File link = new File(projectDir, "lib");
|
||||
try {
|
||||
Files.deleteIfExists(link.toPath());
|
||||
if(link.exists()) {
|
||||
if(link.isDirectory()) {
|
||||
FileUtils.deleteDirectory(link);
|
||||
} else {
|
||||
FileUtils.delete(link);
|
||||
}
|
||||
}
|
||||
Main.getLogger().debug(libsFile);
|
||||
Main.getLogger().debug(link);
|
||||
Path linkPath = Files.createSymbolicLink(link.toPath(), libsFile.toPath());
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren