All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.install.tasks.FileResolverTask
java.lang.Object
|
+----com.sun.wizards.core.Task
|
+----com.sun.install.tasks.FileResolverTask
- public class FileResolverTask
- extends Task
FileResolverTask looks at a filename that is stored in the WizardState and
changes it to reflect the absolute path. If the initial filename is
different than the absolute filename, the FileResolverTask will set
a flag in the WizardState.
-
notifyKey
- The wizard state data key used to store the flag indicating if
this file's absolute path is different than the intended one specified
at buildtime (perhaps because of the use of unix-style symbolic links
Deprecated.
-
FileResolverTask(String)
- Creates a FileResolverTask that resolves the filename accessible
by the specified file key and if the absolute path is different
than the original path, that will be indicated under the notify
key.
-
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.
-
fixDirectorySeparators(String)
- Utility function to replace the platform-independent file seperators used
when storing filenames in the wizard archive into the platform-dependent
seperators used at runtime on a specific platform.
-
perform()
- Perform this Task.
-
resolveFile(String)
- Actually resolve the filename, and set the notifyKey in the wizard state
if the resolved path is different from the original path.
notifyKey
protected String notifyKey
- Note: notifyKey is deprecated.
- The wizard state data key used to store the flag indicating if
this file's absolute path is different than the intended one specified
at buildtime (perhaps because of the use of unix-style symbolic links
FileResolverTask
public FileResolverTask(String notifyKey)
- Creates a FileResolverTask that resolves the filename accessible
by the specified file key and if the absolute path is different
than the original path, that will be indicated under the notify
key.
- Parameters:
- notifyKey - The key that points to the difference flag.
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
perform
public void perform()
- Perform this Task.
- Overrides:
- perform in class Task
fixDirectorySeparators
protected String fixDirectorySeparators(String filename)
- Utility function to replace the platform-independent file seperators used
when storing filenames in the wizard archive into the platform-dependent
seperators used at runtime on a specific platform.
- Parameters:
- filename - The complete filename (including path) to operate on
- Returns:
- The new platform-dependent filename to be used at runtime.
resolveFile
protected String resolveFile(String originalFilename)
- Actually resolve the filename, and set the notifyKey in the wizard state
if the resolved path is different from the original path.
- Parameters:
- originalFilename - The original filename (including path) to operate
on
- Returns:
- The fully-resolved filename.
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