Class ScriptApplication

java.lang.Object
org.rapidcontext.app.ScriptApplication

public class ScriptApplication extends Object
The main command-line application.
Version:
1.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The base application directory.
    int
    The post command execution delay in seconds.
    The local add-on directory.
    The command source text, as logged and/or visible for introspection.
    boolean
    The command trace flag.
    The user name used for authentication.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new command-line application instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    runFile(String[] prefix, File file)
    Runs the commands specified by the prefix and lines read from a file.
    void
    runSingle(String[] params)
    Runs a single command.
    void
    runStdin(String[] prefix)
    Runs the commands specified by the prefix and lines read from standard input.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • appDir

      public File appDir
      The base application directory. Defaults to the current directory.
    • localDir

      public File localDir
      The local add-on directory. Defaults to the current directory.
    • user

      public String user
      The user name used for authentication. Defaults to the current user name.
    • source

      public String source
      The command source text, as logged and/or visible for introspection.
    • delay

      public int delay
      The post command execution delay in seconds. Default to zero (0).
    • trace

      public boolean trace
      The command trace flag. Defaults to false.
  • Constructor Details

    • ScriptApplication

      public ScriptApplication()
      Creates a new command-line application instance.
  • Method Details