summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-12-14 20:17:01 +1100
committermd_5 <git@md-5.net>2018-12-14 20:17:01 +1100
commit22a271cf0f91c2e14e6c150f5dece6a61ad517b3 (patch)
treee7e8f61aa6ad2d26bbc3bc9905457416f775da2e
parent7d838a5884a645af308a4c4acbd1dbab16514f59 (diff)
downloadbuildtools-22a271cf0f91c2e14e6c150f5dece6a61ad517b3.tar
buildtools-22a271cf0f91c2e14e6c150f5dece6a61ad517b3.tar.gz
buildtools-22a271cf0f91c2e14e6c150f5dece6a61ad517b3.tar.lz
buildtools-22a271cf0f91c2e14e6c150f5dece6a61ad517b3.tar.xz
buildtools-22a271cf0f91c2e14e6c150f5dece6a61ad517b3.zip
Soften / reduce messages related to symlink creation in previous commit
-rw-r--r--src/main/java/org/spigotmc/builder/Builder.java8
1 files 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" );