diff options
author | md_5 <git@md-5.net> | 2014-11-29 10:49:54 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2014-11-29 10:49:54 +1100 |
commit | 2cb26df892759497ce4b6b9e4c70bc74d2583d34 (patch) | |
tree | ba96b49051f62b0fd8c289732d3b82d1eeb59516 | |
parent | 93595221756d3501c7e6e306b1055277beb7f795 (diff) | |
download | buildtools-2cb26df892759497ce4b6b9e4c70bc74d2583d34.tar buildtools-2cb26df892759497ce4b6b9e4c70bc74d2583d34.tar.gz buildtools-2cb26df892759497ce4b6b9e4c70bc74d2583d34.tar.lz buildtools-2cb26df892759497ce4b6b9e4c70bc74d2583d34.tar.xz buildtools-2cb26df892759497ce4b6b9e4c70bc74d2583d34.zip |
Exit 1 if we fail in the build process
-rw-r--r-- | src/main/java/org/spigotmc/builder/Builder.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/spigotmc/builder/Builder.java b/src/main/java/org/spigotmc/builder/Builder.java index 3c2325f..fb31439 100644 --- a/src/main/java/org/spigotmc/builder/Builder.java +++ b/src/main/java/org/spigotmc/builder/Builder.java @@ -49,7 +49,7 @@ public class Builder { System.out.println( "Sorry, but Macintosh is not currently a supported platform for compilation at this time." ); System.out.println( "Please run this script on a Windows or Linux PC and then copy the jars to this computer." ); - return; + System.exit( 1 ); } try @@ -58,7 +58,7 @@ public class Builder } catch ( Exception ex ) { System.out.println( "You must run this jar through bash (msysgit)" ); - return; + System.exit( 1 ); } try @@ -273,6 +273,7 @@ public class Builder { System.err.println( "Error compiling Spigot, are you running this jar via msysgit?" ); ex.printStackTrace(); + System.exit( 1 ); } } |