mirror of
https://hub.spigotmc.org/stash/scm/spigot/buildtools.git
synced 2025-04-13 09:31:28 +00:00
Use 1GB of ram per maven invocation.
This commit is contained in:
parent
a7829bfaad
commit
a48f9fafe5
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue