public class Tool extends Object
Constructor and Description |
---|
Tool() |
Modifier and Type | Method and Description |
---|---|
void |
antlr(String fullyQualifiedFilename)
Run ANTLR on a grammar file, leaving the output in the directory of the
grammar file.
|
void |
error(String msg) |
void |
error(String msg,
Exception e) |
void |
log(String cmd) |
static void |
main(String[] args) |
void |
perform(String app,
String action)
Find a class named after the app and then find a method within
that is named after the action.
|
void |
stderr(String s)
Stderr from executing sub tools
|
void |
stdout(String s)
Stdout from executing sub tools
|
void |
system(String cmd)
A portable system command execution routine that logs stdout/stderr
and handles cmd-line wildcards properly.
|
public String os
public static void main(String[] args)
public void perform(String app, String action)
public void system(String cmd)
public void antlr(String fullyQualifiedFilename)
public void stdout(String s)
public void stderr(String s)
public void error(String msg)
public void log(String cmd)