From eda21605536545a9b6b7cf004ca78f0d4c07164f Mon Sep 17 00:00:00 2001 From: BuildTools Date: Sun, 26 Apr 2015 13:10:19 -0500 Subject: Fix NPE when skipping compile stage. --- src/main/java/org/spigotmc/builder/Builder.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/spigotmc/builder/Builder.java b/src/main/java/org/spigotmc/builder/Builder.java index 3aa7a76..bf2fe75 100644 --- a/src/main/java/org/spigotmc/builder/Builder.java +++ b/src/main/java/org/spigotmc/builder/Builder.java @@ -405,9 +405,13 @@ public class Builder { System.out.println( " " ); } - System.out.println( "Success! Everything compiled successfully. Copying final .jar files now." ); - copyJar( "CraftBukkit/target", "craftbukkit", "craftbukkit-" + versionInfo.getMinecraftVersion() + ".jar" ); - copyJar( "Spigot/Spigot-Server/target", "spigot", "spigot-" + versionInfo.getMinecraftVersion() + ".jar" ); + + if ( !skipCompile ) + { + System.out.println( "Success! Everything compiled successfully. Copying final .jar files now." ); + copyJar( "CraftBukkit/target", "craftbukkit", "craftbukkit-" + versionInfo.getMinecraftVersion() + ".jar" ); + copyJar( "Spigot/Spigot-Server/target", "spigot", "spigot-" + versionInfo.getMinecraftVersion() + ".jar" ); + } } public static final String get(String url) throws IOException -- cgit v1.2.3