All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.install.tasks.InstallCommandLineTask
java.lang.Object
|
+----com.sun.wizards.core.Task
|
+----com.sun.install.tasks.InstallCommandLineTask
- public class InstallCommandLineTask
- extends Task
- implements Serializable
This task processes the command line arguments that are
specific to install wizards. Currently, the supported
command line arguments for install are:
- -no Run the install wizard but do not install software.
- -locales Install software supporting the
specified locales.
- -components Install the specified components only.
-
SOLARIS_LOCALE_COMMAND
- The command (on solaris) to find out the current locale.
-
InstallCommandLineTask()
- Creates a task that sets up the wizard based on command line arguments.
-
addRuntimeResources(Vector)
- Add the runtime class requirements to the specified vector.
-
estimatedCompletionTime(boolean)
- An estimation of how long it will take to complete
this task, in milliseconds.
-
initialize(Sequence)
- Perform the command line processing.
-
perform()
- Perform this Task.
-
processCommandLineArguments()
- Use the information gathered from the command line.
-
processComponents()
- Set the default and selected components.
-
processDiskSpace()
- Prints the disk space requirements and exits.
-
processLocales()
- Set the locales.
-
processRootParent()
- Handles setting the root parent.
-
processWSRData()
-
-
readCommandLineArguments()
- Read the install-specific command line arguments.
-
readProductArgument()
-
SOLARIS_LOCALE_COMMAND
public static final String SOLARIS_LOCALE_COMMAND
- The command (on solaris) to find out the current locale.
InstallCommandLineTask
public InstallCommandLineTask()
- Creates a task that sets up the wizard based on command line arguments.
initialize
public void initialize(Sequence sequence)
- Perform the command line processing. This task should be added to
the wizard initialization sequence.
- Overrides:
- initialize in class Task
processWSRData
public void processWSRData() throws IOException
perform
public void perform()
- Perform this Task.
- Overrides:
- perform in class Task
readCommandLineArguments
public void readCommandLineArguments()
- Read the install-specific command line arguments. Generally, the arguments
will be set into the system properties.
readProductArgument
protected void readProductArgument()
processCommandLineArguments
protected void processCommandLineArguments()
- Use the information gathered from the command line.
processLocales
protected void processLocales()
- Set the locales.
processComponents
protected void processComponents()
- Set the default and selected components.
processRootParent
protected void processRootParent()
- Handles setting the root parent. This is used for redirection of
installed bits.
processDiskSpace
protected void processDiskSpace()
- Prints the disk space requirements and exits.
estimatedCompletionTime
public int estimatedCompletionTime(boolean direction)
- An estimation of how long it will take to complete
this task, in milliseconds.
- Parameters:
- direction - Used to determine how long this task will take in the
specified direction. If the flag is true (indicating forward), this
method should return the amount of time this task will take when
executing the task in a forward direction.
- Returns:
- The estimated time to complete in milliseconds.
- Overrides:
- estimatedCompletionTime in class Task
addRuntimeResources
public void addRuntimeResources(Vector resourceVector)
- Add the runtime class requirements to the specified vector.
- Parameters:
- resourceVector - The vector containing all the required resources
for this wizard.
- Overrides:
- addRuntimeResources in class Task
All Packages Class Hierarchy This Package Previous Next Index