summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBuildTools <unconfigured@null.spigotmc.org>2015-04-26 13:10:19 -0500
committerBuildTools <unconfigured@null.spigotmc.org>2015-04-26 13:10:19 -0500
commiteda21605536545a9b6b7cf004ca78f0d4c07164f (patch)
tree76f37a21d4c658639b4828a5ed0960a785490264
parent5068da3ba101ec77ce5465894f2fd79489fc94fa (diff)
downloadbuildtools-eda21605536545a9b6b7cf004ca78f0d4c07164f.tar
buildtools-eda21605536545a9b6b7cf004ca78f0d4c07164f.tar.gz
buildtools-eda21605536545a9b6b7cf004ca78f0d4c07164f.tar.lz
buildtools-eda21605536545a9b6b7cf004ca78f0d4c07164f.tar.xz
buildtools-eda21605536545a9b6b7cf004ca78f0d4c07164f.zip
Fix NPE when skipping compile stage.
-rw-r--r--src/main/java/org/spigotmc/builder/Builder.java10
1 files 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