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:


Variable Index

 o SOLARIS_LOCALE_COMMAND
The command (on solaris) to find out the current locale.

Constructor Index

 o InstallCommandLineTask()
Creates a task that sets up the wizard based on command line arguments.

Method Index

 o addRuntimeResources(Vector)
Add the runtime class requirements to the specified vector.
 o estimatedCompletionTime(boolean)
An estimation of how long it will take to complete this task, in milliseconds.
 o initialize(Sequence)
Perform the command line processing.
 o perform()
Perform this Task.
 o processCommandLineArguments()
Use the information gathered from the command line.
 o processComponents()
Set the default and selected components.
 o processDiskSpace()
Prints the disk space requirements and exits.
 o processLocales()
Set the locales.
 o processRootParent()
Handles setting the root parent.
 o processWSRData()
 o readCommandLineArguments()
Read the install-specific command line arguments.
 o readProductArgument()

Variables

 o SOLARIS_LOCALE_COMMAND
 public static final String SOLARIS_LOCALE_COMMAND
The command (on solaris) to find out the current locale.

Constructors

 o InstallCommandLineTask
 public InstallCommandLineTask()
Creates a task that sets up the wizard based on command line arguments.

Methods

 o 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
 o processWSRData
 public void processWSRData() throws IOException
 o perform
 public void perform()
Perform this Task.

Overrides:
perform in class Task
 o readCommandLineArguments
 public void readCommandLineArguments()
Read the install-specific command line arguments. Generally, the arguments will be set into the system properties.

 o readProductArgument
 protected void readProductArgument()
 o processCommandLineArguments
 protected void processCommandLineArguments()
Use the information gathered from the command line.

 o processLocales
 protected void processLocales()
Set the locales.

 o processComponents
 protected void processComponents()
Set the default and selected components.

 o processRootParent
 protected void processRootParent()
Handles setting the root parent. This is used for redirection of installed bits.

 o processDiskSpace
 protected void processDiskSpace()
Prints the disk space requirements and exits.

 o 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
 o 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