summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2015-01-05 19:45:18 +1100
committermd_5 <git@md-5.net>2015-01-05 19:45:18 +1100
commita48f9fafe5daefed9f706b8655f1b78b6275939f (patch)
treea49ab0392b1a554d6747d737d6c5450db497b304
parenta7829bfaaddcf0eac35036c54d90a11e2c01f2da (diff)
downloadbuildtools-a48f9fafe5daefed9f706b8655f1b78b6275939f.tar
buildtools-a48f9fafe5daefed9f706b8655f1b78b6275939f.tar.gz
buildtools-a48f9fafe5daefed9f706b8655f1b78b6275939f.tar.lz
buildtools-a48f9fafe5daefed9f706b8655f1b78b6275939f.tar.xz
buildtools-a48f9fafe5daefed9f706b8655f1b78b6275939f.zip
Use 1GB of ram per maven invocation.
-rw-r--r--src/main/java/org/spigotmc/builder/Builder.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/spigotmc/builder/Builder.java b/src/main/java/org/spigotmc/builder/Builder.java
index 52bee85..4973335 100644
--- a/src/main/java/org/spigotmc/builder/Builder.java
+++ b/src/main/java/org/spigotmc/builder/Builder.java
@@ -371,6 +371,10 @@ public class Builder
ProcessBuilder pb = new ProcessBuilder( command );
pb.directory( workDir );
pb.environment().put( "JAVA_HOME", System.getProperty( "java.home" ) );
+ if ( !pb.environment().containsKey( "MAVEN_OPTS" ) )
+ {
+ pb.environment().put( "MAVEN_OPTS", "-Xmx1024M" );
+ }
final Process ps = pb.start();