public final class ExecutionEnvironmentDescription extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ADDITIONAL_DIRS
Additional directories property name in an execution environment description file.
|
static String |
BOOT_CLASS_PATH
Boot class path property name in an execution environment description file.
|
static String |
CLASS_LIB_LEVEL
OSGi profile property name in an execution environment description file.
|
static String |
DEBUG_ARGS
Debug arguments property name in an execution environment description file.
|
static String |
EE_HOME
The directory containing the execution environment description file.
|
static String |
EE_NAME
VM name property name in an execution environment description file.
|
static String |
ENDORSED_DIRS
Endorsed directories property name in an execution environment description file.
|
static String |
EXECUTABLE
Executable property name in an execution environment description file.
|
static String |
EXECUTABLE_CONSOLE
Console executable property name in an execution environment description file.
|
static String |
EXTENSION_DIRS
Extension directories property name in an execution environment description file.
|
static String |
INDEX_LOC
Pre-built index location property in an execution environment description file.
|
static String |
JAVA_HOME
Java home property name in an execution environment description file.
|
static String |
JAVADOC_LOC
Javadoc location property name in an execution environment description file.
|
static String |
LANGUAGE_LEVEL
Language level property name in an execution environment description file.
|
static String |
SOURCE_DEFAULT
Source archive property name in an execution environment description file.
|
static String |
SOURCE_MAP
Source map property name in an execution environment description file.
|
Constructor and Description |
---|
ExecutionEnvironmentDescription(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 |
---|---|
File |
getConsoleExecutable()
Returns the console executable for this description as a file or
null if
not specified. |
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.
|
Map<String,String> |
getProperties()
Returns a map of properties defined in this execution environment description.
|
String |
getProperty(String property)
Returns the specified property from this description, or
null
if none. |
String |
getVMArguments()
Returns VM arguments in this description or
null if none. |
public static final String ENDORSED_DIRS
public static final String BOOT_CLASS_PATH
public static final String SOURCE_DEFAULT
public static final 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 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 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 String ADDITIONAL_DIRS
public static final String EXTENSION_DIRS
public static final String LANGUAGE_LEVEL
public static final String CLASS_LIB_LEVEL
The value is the identifier of an OSGi profile, such as J2SE-1.4
.
public static final String EXECUTABLE
javaw.exe
.public static final String EXECUTABLE_CONSOLE
java.exe
.public static final 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 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 String EE_NAME
The name is used as the JRE name when installing an EE JRE into Eclipse.
public static final String EE_HOME
public ExecutionEnvironmentDescription(File eeFile) throws CoreException
http://wiki.eclipse.org/Execution_Environment_Descriptions
.eeFile
- execution environment description fileCoreException
- if unable to read or parse the filepublic Map<String,String> getProperties()
${ee.home}
have already been performed when resolving property values.String
keys and valuespublic String getProperty(String property)
null
if none.property
- property namenull
public LibraryLocation[] getLibraryLocations()
src
and
src.map
properties.public 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 File getExecutable()
null
if
not specified.null
if nonepublic File getConsoleExecutable()
null
if
not specified.null
if none
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.