Class SearchCLI

java.lang.Object
eu.isas.searchgui.cmd.SearchCLI
All Implemented Interfaces:
Callable

public class SearchCLI extends Object implements Callable
This class can be used to control SearchGUI in command line.
Author:
Marc Vaudel, Harald Barsnes
  • Constructor Details

    • SearchCLI

      public SearchCLI(String[] args)
      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

      public Object call()
      Calling this method will run the configured SearchCLI process.
      Specified by:
      call in interface Callable
    • main

      public static void main(String[] args)
      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

      public static void redirectErrorStream(File aLogFolder)
      Redirects the error stream to the SearchGUI.log of a given folder.
      Parameters:
      aLogFolder - the folder where to save the log
    • getLogFileMessage

      public static String getLogFileMessage()
      Returns the "see the log file" message. With the path if available.
      Returns:
      the "see the log file" message