public class Main extends Object
Modifier and Type | Class and Description |
---|---|
class |
Main.EndSplashHandler |
Modifier and Type | Field and Description |
---|---|
protected String |
bootLocation
The location of the launcher to run.
|
protected URL |
configurationLocation
The location of the configuration information for this instance
|
protected boolean |
debug
Indicates whether this instance is running in debug mode.
|
protected String |
devClassPath
The extra development time class path entries.
|
protected static String |
ENTRY |
protected static int |
ERROR |
protected String |
framework
The id of the bundle that will contain the framework to run.
|
protected boolean |
inDevelopmentMode
Indicates whether this instance is running in development mode.
|
protected URL |
installLocation
The location of the install root
|
protected static String |
JAR_SCHEME |
protected BufferedWriter |
log |
protected File |
logFile |
protected static String |
MESSAGE |
protected boolean |
newSession |
protected String |
parentConfigurationLocation
The location of the configuration information in the install root
|
protected static String |
PLUGIN_ID |
protected static String |
PROP_FRAMEWORK |
protected static String |
REFERENCE_SCHEME |
protected static String |
SESSION |
protected static String |
STACK |
Constructor and Description |
---|
Main() |
Modifier and Type | Method and Description |
---|---|
protected void |
addEntry(URL url,
List result) |
protected void |
basicRun(String[] args)
Executes the launch.
|
protected boolean |
checkVersion(String availableVersion,
String requiredVersion)
Checks whether the given available version is greater or equal to the
given required version.
|
protected String |
decode(String urlString)
Returns a string representation of the given URL String.
|
protected int |
findMax(String[] candidates) |
protected String[] |
getArrayFromList(String prop)
Returns the result of converting a list of comma-separated tokens into an array
|
protected URL[] |
getBootPath(String base)
Returns the
URL -based class path describing where the boot classes are located. |
protected void |
log(Object obj) |
static void |
main(String argString)
Runs this launcher with the arguments specified in the given string.
|
static void |
main(String[] args)
Runs the platform with the given arguments.
|
protected String[] |
processCommandLine(String[] args)
Processes the command line arguments.
|
int |
run(String[] args)
Runs the platform with the given arguments.
|
protected String |
searchFor(String target,
String start)
Searches for the given target directory starting in the "plugins" subdirectory
of the given location.
|
protected void |
setSecurityPolicy(URL[] bootPath) |
protected void |
takeDownSplash() |
protected boolean debug
protected String bootLocation
protected URL installLocation
protected URL configurationLocation
protected String parentConfigurationLocation
protected String framework
protected String devClassPath
protected boolean inDevelopmentMode
protected static final String REFERENCE_SCHEME
protected static final String JAR_SCHEME
protected static final String PROP_FRAMEWORK
protected static final String SESSION
protected static final String ENTRY
protected static final String MESSAGE
protected static final String STACK
protected static final int ERROR
protected static final String PLUGIN_ID
protected File logFile
protected BufferedWriter log
protected boolean newSession
protected void basicRun(String[] args) throws Exception
args
- command-line argumentsException
- thrown if a problem occurs during the launchprotected void setSecurityPolicy(URL[] bootPath)
protected boolean checkVersion(String availableVersion, String requiredVersion)
Will set PROP_EXITCODE/PROP_EXITDATA accordingly if check fails.
protected String decode(String urlString)
protected String[] getArrayFromList(String prop)
prop
- the initial comma-separated stringprotected URL[] getBootPath(String base) throws IOException
URL
-based class path describing where the boot classes are located.base
- the base locationMalformedURLException
- if a problem occurs computing the class pathIOException
protected String searchFor(String target, String start)
start
- the location to begin searchingprotected int findMax(String[] candidates)
public static void main(String argString)
argString
- the arguments stringpublic static void main(String[] args)
-application com.example.application
).
After running the application System.exit(N)
is executed.
The value of N is derived from the value returned from running the application.
If the application's return value is an Integer
, N is this value.
In all other cases, N = 0.
Clients wishing to run the platform without a following System.exit
call should use run()
.
args
- the command line argumentsrun(String[])
public int run(String[] args)
-application com.example.application
).
Returns the value returned from running the application.
If the application's return value is an Integer
, N is this value.
In all other cases, N = 0.args
- the command line argumentsprotected String[] processCommandLine(String[] args)
args
- the command line argumentsprotected void takeDownSplash()
protected void log(Object obj)
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.