diff options
author | md_5 <git@md-5.net> | 2014-12-12 11:07:46 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2014-12-12 11:07:46 +1100 |
commit | a664e1f26301c38ad858faa769cc9f9d4555983c (patch) | |
tree | 811830aafcd43609da5dc3d5e82dcc09372687ab | |
parent | 42001db64a13ebe7a13aec121c7638cbfb43db72 (diff) | |
download | buildtools-a664e1f26301c38ad858faa769cc9f9d4555983c.tar buildtools-a664e1f26301c38ad858faa769cc9f9d4555983c.tar.gz buildtools-a664e1f26301c38ad858faa769cc9f9d4555983c.tar.lz buildtools-a664e1f26301c38ad858faa769cc9f9d4555983c.tar.xz buildtools-a664e1f26301c38ad858faa769cc9f9d4555983c.zip |
Add don't update flag
-rw-r--r-- | src/main/java/org/spigotmc/builder/Builder.java | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/src/main/java/org/spigotmc/builder/Builder.java b/src/main/java/org/spigotmc/builder/Builder.java index 117a14e..f825ab3 100644 --- a/src/main/java/org/spigotmc/builder/Builder.java +++ b/src/main/java/org/spigotmc/builder/Builder.java @@ -53,13 +53,20 @@ public class Builder public static final File CWD = new File( "." ); public static final String MC_VERSION = "1.8"; private static final File jacobeDir = new File( "jacobe" ); + private static boolean dontUpdate; public static void main(String[] args) throws Exception { - for (String s : args) { - if ("--disable-certificate-check".equals(s)) { + for ( String s : args ) + { + if ( "--disable-certificate-check".equals( s ) ) + { disableHttpsCertificateCheck(); } + if ( "--dont-update".equals( s ) ) + { + dontUpdate = true; + } } if ( IS_MAC ) { @@ -146,10 +153,13 @@ public class Builder Git spigotGit = Git.open( spigot ); Git buildGit = Git.open( buildData ); - pull( bukkitGit ); - pull( craftBukkitGit ); - pull( spigotGit ); - pull( buildGit ); + if ( !dontUpdate ) + { + pull( bukkitGit ); + pull( craftBukkitGit ); + pull( spigotGit ); + pull( buildGit ); + } File vanillaJar = new File( workDir, "minecraft_server." + MC_VERSION + ".jar" ); if ( !vanillaJar.exists() ) |