public class PathSettingsCLI extends Object
Constructor and Description |
---|
PathSettingsCLI(PathSettingsCLIInputBean pathSettingsCLIInputBean)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
call()
Sets the path settings and returns null.
|
static String[] |
extractAndUpdatePathOptions(String[] args)
If the arguments contains changes to the paths these arguments will be
extracted and the paths updated, before the remaining non-path options
are returned for further processing.
|
String |
getJarFilePath()
Returns the path to the jar file.
|
static void |
main(String[] args)
Starts the launcher by calling the launch method.
|
static void |
redirectErrorStream(File aLogFolder)
Redirects the error stream to the SearchGUI.log of a given folder.
|
void |
setPathSettings()
Sets the path settings according to the pathSettingsCLIInputBean.
|
String |
toString() |
public PathSettingsCLI(PathSettingsCLIInputBean pathSettingsCLIInputBean)
pathSettingsCLIInputBean
- an input bean containing the user
parameterspublic Object call()
public void setPathSettings()
public String getJarFilePath()
public static void main(String[] args)
args
- the command line argumentspublic static String[] extractAndUpdatePathOptions(String[] args) throws org.apache.commons.cli.ParseException
args
- the command line argumentsorg.apache.commons.cli.ParseException
- if a ParseException occurspublic static void redirectErrorStream(File aLogFolder)
aLogFolder
- the folder where to save the logCopyright © 2021. All rights reserved.