public class TransformLauncher extends Object
| Constructor and Description |
|---|
TransformLauncher()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
displayHelp()
Displays tool usage.
|
void |
displayVersion()
Displays the current version and disclaimer notice.
|
static void |
main(String[] args) |
org.apache.commons.cli.CommandLine |
parse(String[] args)
A method to parse the command-line arguments.
|
void |
query(org.apache.commons.cli.CommandLine line)
Examines the command-line arguments passed into the Harvest Tool
and takes the appropriate action based on what flags were set.
|
void |
setIncludePaths(List<String> i)
Set the paths to search for files referenced by pointers.
|
void |
setTargets(List<String> targets)
Set the target.
|
public TransformLauncher()
throws IOException
IOExceptionpublic final org.apache.commons.cli.CommandLine parse(String[] args) throws org.apache.commons.cli.ParseException
args - The command-line argumentsorg.apache.commons.cli.ParseException - If there was an error during parsing.public final void query(org.apache.commons.cli.CommandLine line)
throws InvalidOptionException,
IOException
line - A class representation of the command-line arguments.Exception - If there was an error while querying the options
that were set on the command-line.InvalidOptionExceptionIOExceptionpublic final void displayHelp()
public final void displayVersion()
public void setTargets(List<String> targets) throws MalformedURLException
targets - A list of targets.MalformedURLExceptionpublic void setIncludePaths(List<String> i)
Default is to always look first in the same directory as the label, then search specified directories.
i - List of pathspublic static void main(String[] args) throws IOException
IOExceptionCopyright © 2022 Planetary Data System. All rights reserved.