public class MaxHeapSizeUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
MAVEN_OPTIONS
The maven options environment variable.
|
static String |
MAX_MEMORY_FLAG
The max heap size JVM parameter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
envHasMavenMaxMemSetting()
Returns
true if the current environment has the max heap size set in the maven
options, otherwise false . |
static MaxHeapSizeUtil |
getInstance()
Singleton getter.
|
String |
getMavenMaxMemSetting()
Gets the maximum heap size JVM argument from the maven options environment variable.
|
void |
setEnvSettings(Map<String,String> envSettings)
Sets the
System.getEnv() settings. |
public static final String MAVEN_OPTIONS
public static final String MAX_MEMORY_FLAG
public static MaxHeapSizeUtil getInstance()
MemSettingUtil
instance.public void setEnvSettings(Map<String,String> envSettings)
System.getEnv()
settings.envSettings
- the settings map to usepublic String getMavenMaxMemSetting()
null
if the maven
environment variable isn't set, the JVM heap size argument is not present, or the JVM
heap size argument is somehow invalid.envHasMavenMaxMemSetting()
public boolean envHasMavenMaxMemSetting()
true
if the current environment has the max heap size set in the maven
options, otherwise false
.true
if the current environment has the max heap size set in the maven
options, otherwise false
.getMavenMaxMemSetting()
Copyright © 2005–2015 Codehaus. All rights reserved.