public class TransformLauncher
extends java.lang.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(java.lang.String[] args) |
org.apache.commons.cli.CommandLine |
parse(java.lang.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(java.util.List<java.lang.String> i)
Set the paths to search for files referenced by pointers.
|
void |
setTargets(java.util.List<java.lang.String> targets)
Set the target.
|
public TransformLauncher() throws java.io.IOException
java.io.IOException
public final org.apache.commons.cli.CommandLine parse(java.lang.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, java.io.IOException
line
- A class representation of the command-line arguments.java.lang.Exception
- If there was an error while querying the options
that were set on the command-line.InvalidOptionException
java.io.IOException
public final void displayHelp()
public final void displayVersion()
public void setTargets(java.util.List<java.lang.String> targets) throws java.net.MalformedURLException
targets
- A list of targets.java.net.MalformedURLException
public void setIncludePaths(java.util.List<java.lang.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(java.lang.String[] args) throws java.io.IOException
java.io.IOException
Copyright © 2010-2019 Planetary Data System. All Rights Reserved.