diff options
author | md_5 <git@md-5.net> | 2015-01-12 11:49:04 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2015-01-12 11:49:04 +1100 |
commit | abb3b7a699cec3f607f691630abb14d7e221cc04 (patch) | |
tree | 3bf9ca4dafb3152c7bb703b70d6b5046e50ff96f | |
parent | 302e92ca77a14597586b06343f6adebf4b146cf9 (diff) | |
download | buildtools-abb3b7a699cec3f607f691630abb14d7e221cc04.tar buildtools-abb3b7a699cec3f607f691630abb14d7e221cc04.tar.gz buildtools-abb3b7a699cec3f607f691630abb14d7e221cc04.tar.lz buildtools-abb3b7a699cec3f607f691630abb14d7e221cc04.tar.xz buildtools-abb3b7a699cec3f607f691630abb14d7e221cc04.zip |
BUILDTOOLS-65 & BUILDTOOLS-68: Javadoc and source jar generation options.
-rw-r--r-- | src/main/java/org/spigotmc/builder/Builder.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/java/org/spigotmc/builder/Builder.java b/src/main/java/org/spigotmc/builder/Builder.java index aa90137..ff3750a 100644 --- a/src/main/java/org/spigotmc/builder/Builder.java +++ b/src/main/java/org/spigotmc/builder/Builder.java @@ -59,6 +59,8 @@ public class Builder public static final String MC_VERSION = "1.8"; private static boolean dontUpdate; private static boolean skipCompile; + private static boolean generateSource; + private static boolean generateDocs; public static void main(String[] args) throws Exception { @@ -76,6 +78,14 @@ public class Builder { skipCompile = true; } + if ( "--generate-source".equals( s ) ) + { + generateSource = true; + } + if ( "--generate-docs".equals( s ) ) + { + generateDocs = true; + } } logOutput(); @@ -300,6 +310,14 @@ public class Builder { System.out.println( "Compiling Bukkit" ); runProcess( bukkit, "sh", mvn, "clean", "install" ); + if ( generateDocs ) + { + runProcess( bukkit, "sh", mvn, "javadoc:jar" ); + } + if ( generateSource ) + { + runProcess( bukkit, "sh", mvn, "source:jar" ); + } System.out.println( "Compiling CraftBukkit" ); runProcess( craftBukkit, "sh", mvn, "clean", "install" ); |