org.mevenide.environment
Class ConfigUtils

java.lang.Object
  extended byorg.mevenide.environment.ConfigUtils

public final class ConfigUtils
extends java.lang.Object

Utility class.

Author:
Milos Kleint (ca206216@tiscali.cz)

Method Summary
static java.lang.String getConfigurationFile()
           
static ILocationFinder getDefaultLocationFinder()
          Deprecated. don't use, doesn't take the project's properties into account. Instead create and keep an instance of LocatioFinderAgrregator created with IQueryContext of the project.
static java.lang.String getEndorsedDirs()
          constructs the endorsedDirs property needed for Maven execution
static int getHeapSize()
           
static void setHeapSize(int hSize)
          set maximum java heap size - passed as vm argument (Xmx) when launching maven
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultLocationFinder

public static ILocationFinder getDefaultLocationFinder()
Deprecated. don't use, doesn't take the project's properties into account. Instead create and keep an instance of LocatioFinderAgrregator created with IQueryContext of the project.

a default location finder, non-project based, just takes the system environment and userdir based values into account.


getHeapSize

public static int getHeapSize()
Returns:
maximum java heap size - passed as vm argument (Xmx) when launching maven

setHeapSize

public static void setHeapSize(int hSize)
set maximum java heap size - passed as vm argument (Xmx) when launching maven


getEndorsedDirs

public static java.lang.String getEndorsedDirs()
constructs the endorsedDirs property needed for Maven execution

Returns:
"JAVA_HOME/lib/endorsed:MAVEN_HOME/lib/endorsed"

getConfigurationFile

public static java.lang.String getConfigurationFile()
Returns:
the configuration file. for now the value of forehead.conf.file


Copyright © 2003-2005 The Codehaus. All Rights Reserved.