Package org.apache.commons.launcher
Class ChildMain
java.lang.Object
java.lang.Thread
org.apache.commons.launcher.ChildMain
- All Implemented Interfaces:
Runnable
A wrapper class that invokes another class'
main(String[])
. This particular class uses several system
properties to control features:
- Redirecting System.out and System.err.
- Displaying a minimized window in the Windows taskbar.
LaunchTask
class.- Author:
- Patrick Luby
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The appendOutput system property name.static final String
The displayMiminizedWindow system property name.static final String
The disposeMiminizedWindow system property name.static final String
The executableName system property name.static final String
The heartbeatFile system property name.static final String
The miminizedWindowIcon system property name.static final String
The miminizedWindowTitle system property name.static final String
The outputFile system property name.static final String
The waitForChild system property name.Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Method Summary
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Field Details
-
APPEND_OUTPUT_PROP_NAME
The appendOutput system property name.- See Also:
-
DISPLAY_MINIMIZED_WINDOW_PROP_NAME
The displayMiminizedWindow system property name.- See Also:
-
DISPOSE_MINIMIZED_WINDOW_PROP_NAME
The disposeMiminizedWindow system property name.- See Also:
-
EXECUTABLE_PROP_NAME
The executableName system property name.- See Also:
-
HEARTBEAT_FILE_PROP_NAME
The heartbeatFile system property name.- See Also:
-
MINIMIZED_WINDOW_TITLE_PROP_NAME
The miminizedWindowTitle system property name.- See Also:
-
MINIMIZED_WINDOW_ICON_PROP_NAME
The miminizedWindowIcon system property name.- See Also:
-
OUTPUT_FILE_PROP_NAME
The outputFile system property name.- See Also:
-
WAIT_FOR_CHILD_PROP_NAME
The waitForChild system property name.- See Also:
-
-
Method Details
-
main
Main entry point for the child process. This method should only be invoked by theLaunchTask
class.- Parameters:
args
- command line arguments
-
run
public void run()Invoke the target application.
-