|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.mojo.cobertura.configuration.MaxHeapSizeUtil
public class MaxHeapSizeUtil
Class for checking and retrieving the maven environment variable for the maximum heap size setting.
Field Summary | |
---|---|
static String |
MAVEN_OPTIONS
The maven options environment variable. |
static String |
MAX_MEMORY_FLAG
The max heap size JVM parameter. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String MAVEN_OPTIONS
public static final String MAX_MEMORY_FLAG
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |