From abb3b7a699cec3f607f691630abb14d7e221cc04 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 12 Jan 2015 11:49:04 +1100 Subject: BUILDTOOLS-65 & BUILDTOOLS-68: Javadoc and source jar generation options. --- src/main/java/org/spigotmc/builder/Builder.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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" ); -- cgit v1.2.3