Package org.apache.commons.launcher
Class ChildMain
- java.lang.Object
-
- java.lang.Thread
-
- org.apache.commons.launcher.ChildMain
-
- All Implemented Interfaces:
java.lang.Runnable
public class ChildMain extends java.lang.ThreadA 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.
LaunchTaskclass.- Author:
- Patrick Luby
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAPPEND_OUTPUT_PROP_NAMEThe appendOutput system property name.static java.lang.StringDISPLAY_MINIMIZED_WINDOW_PROP_NAMEThe displayMiminizedWindow system property name.static java.lang.StringDISPOSE_MINIMIZED_WINDOW_PROP_NAMEThe disposeMiminizedWindow system property name.static java.lang.StringEXECUTABLE_PROP_NAMEThe executableName system property name.static java.lang.StringHEARTBEAT_FILE_PROP_NAMEThe heartbeatFile system property name.static java.lang.StringMINIMIZED_WINDOW_ICON_PROP_NAMEThe miminizedWindowIcon system property name.static java.lang.StringMINIMIZED_WINDOW_TITLE_PROP_NAMEThe miminizedWindowTitle system property name.static java.lang.StringOUTPUT_FILE_PROP_NAMEThe outputFile system property name.static java.lang.StringWAIT_FOR_CHILD_PROP_NAMEThe waitForChild system property name.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Main entry point for the child process.voidrun()Invoke the target application.-
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, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
APPEND_OUTPUT_PROP_NAME
public static final java.lang.String APPEND_OUTPUT_PROP_NAME
The appendOutput system property name.- See Also:
- Constant Field Values
-
DISPLAY_MINIMIZED_WINDOW_PROP_NAME
public static final java.lang.String DISPLAY_MINIMIZED_WINDOW_PROP_NAME
The displayMiminizedWindow system property name.- See Also:
- Constant Field Values
-
DISPOSE_MINIMIZED_WINDOW_PROP_NAME
public static final java.lang.String DISPOSE_MINIMIZED_WINDOW_PROP_NAME
The disposeMiminizedWindow system property name.- See Also:
- Constant Field Values
-
EXECUTABLE_PROP_NAME
public static final java.lang.String EXECUTABLE_PROP_NAME
The executableName system property name.- See Also:
- Constant Field Values
-
HEARTBEAT_FILE_PROP_NAME
public static final java.lang.String HEARTBEAT_FILE_PROP_NAME
The heartbeatFile system property name.- See Also:
- Constant Field Values
-
MINIMIZED_WINDOW_TITLE_PROP_NAME
public static final java.lang.String MINIMIZED_WINDOW_TITLE_PROP_NAME
The miminizedWindowTitle system property name.- See Also:
- Constant Field Values
-
MINIMIZED_WINDOW_ICON_PROP_NAME
public static final java.lang.String MINIMIZED_WINDOW_ICON_PROP_NAME
The miminizedWindowIcon system property name.- See Also:
- Constant Field Values
-
OUTPUT_FILE_PROP_NAME
public static final java.lang.String OUTPUT_FILE_PROP_NAME
The outputFile system property name.- See Also:
- Constant Field Values
-
WAIT_FOR_CHILD_PROP_NAME
public static final java.lang.String WAIT_FOR_CHILD_PROP_NAME
The waitForChild system property name.- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
Main entry point for the child process. This method should only be invoked by theLaunchTaskclass.- Parameters:
args- command line arguments
-
run
public void run()
Invoke the target application.- Specified by:
runin interfacejava.lang.Runnable- Overrides:
runin classjava.lang.Thread- Parameters:
args- command line arguments
-
-