|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Command line to execute groovy.
Field Summary | |
---|---|
List |
args
|
boolean |
autoOutput
|
boolean |
autoSplit
|
String |
backupExtension
|
CompilerConfiguration |
conf
|
boolean |
debug
|
boolean |
editFiles
|
boolean |
isScriptFile
|
int |
port
|
boolean |
processFiles
|
boolean |
processSockets
|
String |
script
|
String |
splitPattern
|
Constructor Summary | |
GroovyMain()
|
Method Summary | |
---|---|
static Options |
buildOptions()
Build the options parser. |
File |
huntForTheScriptFile(String input)
Hunt for the script file, doesn't bother if it is named precisely. |
static void |
main(def args)
Main CLI interface. |
static CommandLine |
parseCommandLine(Options options, def args)
Parse the command line. |
static void |
printHelp(PrintStream out, Options options)
|
static boolean |
process(CommandLine line)
Process the users request. |
static void |
processArgs(def args, PrintStream out)
|
void |
processFile(Script s, File file)
Process a single input file. |
void |
processFiles()
Process the input files. |
void |
processOnce()
Process the standard, single script with args. |
void |
processReader(Script s, BufferedReader reader, PrintWriter pw)
Process a script against a single input file. |
void |
processSockets()
Process Sockets. |
boolean |
run()
Run the script. |
static void |
setSystemPropertyFrom(String nameValue)
|
Constructor Detail |
---|
GroovyMain()
Method Detail |
---|
static Options buildOptions()
public File huntForTheScriptFile(String input)
public static void main(def args)
static CommandLine parseCommandLine(Options options, def args)
static void printHelp(PrintStream out, Options options)
static boolean process(CommandLine line)
public static void processArgs(def args, PrintStream out)
void processFile(Script s, File file)
void processFiles()
void processOnce()
void processReader(Script s, BufferedReader reader, PrintWriter pw)
void processSockets()
boolean run()
static void setSystemPropertyFrom(String nameValue)