Package eu.isas.searchgui.cmd
Class SearchCLI
java.lang.Object
eu.isas.searchgui.cmd.SearchCLI
- All Implemented Interfaces:
Callable
This class can be used to control SearchGUI in command line.
- Author:
- Marc Vaudel, Harald Barsnes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall()Calling this method will run the configured SearchCLI process.static StringReturns the "see the log file" message.static voidStarts the launcher by calling the launch method.static voidredirectErrorStream(File aLogFolder) Redirects the error stream to the SearchGUI.log of a given folder.
-
Constructor Details
-
SearchCLI
Construct a new SearchCLI runnable from a list of arguments. When initialization is successful, calling "run" will start SearchGUI and write the output files when finished.- Parameters:
args- the command line arguments
-
-
Method Details
-
call
Calling this method will run the configured SearchCLI process. -
main
Starts the launcher by calling the launch method. Use this as the main class in the jar file.- Parameters:
args- the command line arguments
-
redirectErrorStream
Redirects the error stream to the SearchGUI.log of a given folder.- Parameters:
aLogFolder- the folder where to save the log
-
getLogFileMessage
Returns the "see the log file" message. With the path if available.- Returns:
- the "see the log file" message
-