public final class ExecutionEnvironmentDescription
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ADDITIONAL_DIRS
Additional directories property name in an execution environment description file.
|
static java.lang.String |
BOOT_CLASS_PATH
Boot class path property name in an execution environment description file.
|
static java.lang.String |
CLASS_LIB_LEVEL
OSGi profile property name in an execution environment description file.
|
static java.lang.String |
DEBUG_ARGS
Debug arguments property name in an execution environment description file.
|
static java.lang.String |
EE_HOME
The directory containing the execution environment description file.
|
static java.lang.String |
EE_NAME
VM name property name in an execution environment description file.
|
static java.lang.String |
ENDORSED_DIRS
Endorsed directories property name in an execution environment description file.
|
static java.lang.String |
EXECUTABLE
Executable property name in an execution environment description file.
|
static java.lang.String |
EXECUTABLE_CONSOLE
Console executable property name in an execution environment description file.
|
static java.lang.String |
EXTENSION_DIRS
Extension directories property name in an execution environment description file.
|
static java.lang.String |
INDEX_LOC
Pre-built index location property in an execution environment description file.
|
static java.lang.String |
JAVA_HOME
Java home property name in an execution environment description file.
|
static java.lang.String |
JAVADOC_LOC
Javadoc location property name in an execution environment description file.
|
static java.lang.String |
LANGUAGE_LEVEL
Language level property name in an execution environment description file.
|
static java.lang.String |
SOURCE_DEFAULT
Source archive property name in an execution environment description file.
|
static java.lang.String |
SOURCE_MAP
Source map property name in an execution environment description file.
|
| Constructor and Description |
|---|
ExecutionEnvironmentDescription(java.io.File eeFile)
Creates an execution environment description based on the properties defined in the given
execution environment description file.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getConsoleExecutable()
Returns the console executable for this description as a file or
null if
not specified. |
java.io.File |
getExecutable()
Returns the executable for this description as a file or
null if
not specified. |
LibraryLocation[] |
getLibraryLocations()
Returns the location of the system libraries defined in this execution environment.
|
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Returns a map of properties defined in this execution environment description.
|
java.lang.String |
getProperty(java.lang.String property)
Returns the specified property from this description, or
null
if none. |
java.lang.String |
getVMArguments()
Returns VM arguments in this description or
null if none. |
public static final java.lang.String ENDORSED_DIRS
public static final java.lang.String BOOT_CLASS_PATH
public static final java.lang.String SOURCE_DEFAULT
public static final java.lang.String SOURCE_MAP
Maps class libraries to source attachments. Value is one or more entries of the form
libPath=sourcePath separated by platform specific file separator. The paths
can use {$ee.home} and '..' as well as the wild card characters
'?" (any one character) and '*' (any number of characters).
The sourcePath can use the wild card characters to have the source path be based on the
wild card replacement in the libPath. In this case the wild card characters in the
sourcePath must exist in the same order as the libPath.
For example, lib/foo*.???=source/src*foo.???.
public static final java.lang.String JAVADOC_LOC
Specifies javadoc location for class libraries. Must be a URL. You can use
${ee.home} and '..' segments to specify a file location
relative to the ee file. If this property is not specified in the file,
javadoc locations will be set to a default location based on the language level.
public static final java.lang.String INDEX_LOC
Specifies the location for a pre-built search index. Must be a valid URL.
You can use ${ee.home} and '..' segments to specify a file location
relative to the ee file.
If this property is not specified the default value of null will be used.
public static final java.lang.String ADDITIONAL_DIRS
public static final java.lang.String EXTENSION_DIRS
public static final java.lang.String LANGUAGE_LEVEL
public static final java.lang.String CLASS_LIB_LEVEL
The value is the identifier of an OSGi profile, such as J2SE-1.4.
public static final java.lang.String EXECUTABLE
javaw.exe.public static final java.lang.String EXECUTABLE_CONSOLE
java.exe.public static final java.lang.String JAVA_HOME
The root install directory of the runtime environment or development kit. Corresponds to a value
that could be used for JAVA_HOME environment variable
public static final java.lang.String DEBUG_ARGS
The arguments to use to launch the VM in debug mode. For example
"-agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:${port}".
The ${port} variable will be substituted with a free port at launch time.
When unspecified, default arguments are constructed based on the language level of the VM.
public static final java.lang.String EE_NAME
The name is used as the JRE name when installing an EE JRE into Eclipse.
public static final java.lang.String EE_HOME
public ExecutionEnvironmentDescription(java.io.File eeFile)
throws CoreException
http://wiki.eclipse.org/Execution_Environment_Descriptions.eeFile - execution environment description fileCoreException - if unable to read or parse the filepublic java.util.Map<java.lang.String,java.lang.String> getProperties()
${ee.home}
have already been performed when resolving property values.String keys and valuespublic java.lang.String getProperty(java.lang.String property)
null
if none.property - property namenullpublic LibraryLocation[] getLibraryLocations()
src and
src.map properties.public java.lang.String getVMArguments()
null if none. VM arguments
correspond to all properties in this description that do not begin with "-Dee."
concatenated together with spaces. Any single VM argument that contains spaces
itself is surrounded with quotes.null if nonepublic java.io.File getExecutable()
null if
not specified.null if nonepublic java.io.File getConsoleExecutable()
null if
not specified.null if none