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