summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2014-11-29 10:49:54 +1100
committermd_5 <git@md-5.net>2014-11-29 10:49:54 +1100
commit2cb26df892759497ce4b6b9e4c70bc74d2583d34 (patch)
treeba96b49051f62b0fd8c289732d3b82d1eeb59516
parent93595221756d3501c7e6e306b1055277beb7f795 (diff)
downloadbuildtools-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.java5
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 );
}
}