From 22a271cf0f91c2e14e6c150f5dece6a61ad517b3 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 14 Dec 2018 20:17:01 +1100 Subject: Soften / reduce messages related to symlink creation in previous commit --- src/main/java/org/spigotmc/builder/Builder.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/spigotmc/builder/Builder.java b/src/main/java/org/spigotmc/builder/Builder.java index b1cb149..79fe5e9 100644 --- a/src/main/java/org/spigotmc/builder/Builder.java +++ b/src/main/java/org/spigotmc/builder/Builder.java @@ -34,6 +34,7 @@ import java.lang.management.ManagementFactory; import java.net.URI; import java.net.URL; import java.net.URLConnection; +import java.nio.file.FileSystemException; import java.nio.file.Path; import java.security.KeyManagementException; import java.security.NoSuchAlgorithmException; @@ -443,10 +444,13 @@ public class Builder java.nio.file.Files.createSymbolicLink( latestLink.toPath(), decompileDir.getParentFile().toPath().relativize( decompileDir.toPath() ) ); } catch ( UnsupportedOperationException ex ) { - // Ignore on Windows etc + // Ignore if not possible + } catch ( FileSystemException ex ) + { + // Not running as admin on Windows } catch ( IOException ex ) { - System.err.println( "Failed to create decompile-latest link " + ex.getMessage() ); + System.out.println( "Did not create decompile-latest link " + ex.getMessage() ); } System.out.println( "Applying CraftBukkit Patches" ); -- cgit v1.2.3