From a664e1f26301c38ad858faa769cc9f9d4555983c Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 12 Dec 2014 11:07:46 +1100 Subject: Add don't update flag --- src/main/java/org/spigotmc/builder/Builder.java | 22 ++++++++++++++++------ 1 file 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() ) -- cgit v1.2.3