public class CommandLine extends Object
|Modifier and Type||Field and Description|
The number of console (terminal) columns can be passed in with this environment variable, supposedly by the OS-specific starter executable (shell script).
|Constructor and Description|
|Modifier and Type||Method and Description|
Emulates the command-line invocation of the tool.
Runs the command line interface.
public static final String FMPP_CONSOLE_COLS
Settings.NAME_COLUMNSis set, that will override this (but by default it isn't set). The value of the environment variable should be just an integer (with possible white space around it), however, if it's not a number,
CommandLinewill attempt to parse it as the output of the Windows
mode con /statuscommand (also then
[BR]can be used instead of real line-breaks, to ease bat programming). On UN*X-es usually this should be the output of
public static void main(String args)
public static int execute(String args, PrintWriter stdout, PrintWriter stderr)
args- the command line arguments
PrintWriterused as stdout. If it is
nullthen it defaults to the real stdout.
PrintWriterused as stderr. If it is
nullthen it defaults to the real stderr.