summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/spigotmc/builder/Builder.java18
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" );