fmpp.tools
Class CommandLine
java.lang.Object
fmpp.tools.CommandLine
public class CommandLine
- extends java.lang.Object
Command-line tool for preprocessing single files or entire directories.
Report bugs and send suggestions to: ddekany at freemail dot hu.
|
Method Summary |
static int |
execute(java.lang.String[] args,
java.io.PrintWriter stdout,
java.io.PrintWriter stderr)
Emulates command-line invocation of the tool. |
static void |
main(java.lang.String[] args)
Main method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandLine
public CommandLine()
main
public static void main(java.lang.String[] args)
- Main method.
execute
public static int execute(java.lang.String[] args,
java.io.PrintWriter stdout,
java.io.PrintWriter stderr)
- Emulates command-line invocation of the tool.
- Parameters:
args - the command line argumentsstdout - the PrintWriter used as stdout.
If it is null then it defaults to the real stdout.stderr - the PrintWriter used as stderr.
If it is null then it defaults to the real stderr.
- Returns:
- exit code. 0 if everything was OK, non-0 if there was an error.