org.apache.commons.launcher

Class ChildMain

public class ChildMain extends Thread

A wrapper class that invokes another class' main(String[]). This particular class uses several system properties to control features: This class is normally not invoked directly. Instead, it is invoked by the {@link LaunchTask} class.

Author: Patrick Luby

Field Summary
static StringAPPEND_OUTPUT_PROP_NAME
The appendOutput system property name.
static StringDISPLAY_MINIMIZED_WINDOW_PROP_NAME
The displayMiminizedWindow system property name.
static StringDISPOSE_MINIMIZED_WINDOW_PROP_NAME
The disposeMiminizedWindow system property name.
static StringEXECUTABLE_PROP_NAME
The executableName system property name.
static StringHEARTBEAT_FILE_PROP_NAME
The heartbeatFile system property name.
static StringMINIMIZED_WINDOW_ICON_PROP_NAME
The miminizedWindowIcon system property name.
static StringMINIMIZED_WINDOW_TITLE_PROP_NAME
The miminizedWindowTitle system property name.
static StringOUTPUT_FILE_PROP_NAME
The outputFile system property name.
static StringWAIT_FOR_CHILD_PROP_NAME
The waitForChild system property name.
Method Summary
static voidmain(String[] args)
Main entry point for the child process.
voidrun()
Invoke the target application.

Field Detail

APPEND_OUTPUT_PROP_NAME

public static final String APPEND_OUTPUT_PROP_NAME
The appendOutput system property name.

DISPLAY_MINIMIZED_WINDOW_PROP_NAME

public static final String DISPLAY_MINIMIZED_WINDOW_PROP_NAME
The displayMiminizedWindow system property name.

DISPOSE_MINIMIZED_WINDOW_PROP_NAME

public static final String DISPOSE_MINIMIZED_WINDOW_PROP_NAME
The disposeMiminizedWindow system property name.

EXECUTABLE_PROP_NAME

public static final String EXECUTABLE_PROP_NAME
The executableName system property name.

HEARTBEAT_FILE_PROP_NAME

public static final String HEARTBEAT_FILE_PROP_NAME
The heartbeatFile system property name.

MINIMIZED_WINDOW_ICON_PROP_NAME

public static final String MINIMIZED_WINDOW_ICON_PROP_NAME
The miminizedWindowIcon system property name.

MINIMIZED_WINDOW_TITLE_PROP_NAME

public static final String MINIMIZED_WINDOW_TITLE_PROP_NAME
The miminizedWindowTitle system property name.

OUTPUT_FILE_PROP_NAME

public static final String OUTPUT_FILE_PROP_NAME
The outputFile system property name.

WAIT_FOR_CHILD_PROP_NAME

public static final String WAIT_FOR_CHILD_PROP_NAME
The waitForChild system property name.

Method Detail

main

public static void main(String[] args)
Main entry point for the child process. This method should only be invoked by the {@link LaunchTask} class.

Parameters: args command line arguments

run

public void run()
Invoke the target application.

Parameters: args command line arguments

Copyright (c) 2001-2002 - Apache Software Foundation