|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.tools.FileSystemCompiler
public class FileSystemCompiler extends java.lang.Object
Command-line compiler (aka. groovyc).
Constructor Summary | |
FileSystemCompiler(CompilerConfiguration configuration)
|
|
FileSystemCompiler(CompilerConfiguration configuration, CompilationUnit cu)
|
Method Summary | |
---|---|
static int
|
checkFiles(java.lang.String[] filenames)
|
static void
|
commandLineCompile(java.lang.String[] args)
Same as main(args) except that exceptions are thrown out instead of causing the VM to exit. |
static void
|
commandLineCompile(java.lang.String[] args, boolean lookupUnnamedFiles)
Same as main(args) except that exceptions are thrown out instead of causing the VM to exit and the lookup for .groovy files can be controlled |
static void
|
commandLineCompileWithErrorHandling(java.lang.String[] args, boolean lookupUnnamedFiles)
Primary entry point for compiling from the command line (using the groovyc script). |
void
|
compile(java.lang.String[] paths)
|
void
|
compile(java.io.File[] files)
|
static org.apache.commons.cli.Options
|
createCompilationOptions()
|
static java.io.File
|
createTempDir()
|
static void
|
deleteRecursive(java.io.File file)
|
static void
|
displayHelp(org.apache.commons.cli.Options options)
|
static void
|
displayVersion()
|
static void
|
doCompilation(CompilerConfiguration configuration, CompilationUnit unit, java.lang.String[] filenames)
|
static void
|
doCompilation(CompilerConfiguration configuration, CompilationUnit unit, java.lang.String[] filenames, boolean lookupUnnamedFiles)
|
static CompilerConfiguration
|
generateCompilerConfigurationFromOptions(org.apache.commons.cli.CommandLine cli)
|
static java.lang.String[]
|
generateFileNamesFromOptions(org.apache.commons.cli.CommandLine cli)
|
static void
|
main(java.lang.String[] args)
Primary entry point for compiling from the command line (using the groovyc script). |
static boolean
|
validateFiles(java.lang.String[] filenames)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor Detail |
---|
public FileSystemCompiler(CompilerConfiguration configuration)
public FileSystemCompiler(CompilerConfiguration configuration, CompilationUnit cu)
Method Detail |
---|
public static int checkFiles(java.lang.String[] filenames)
public static void commandLineCompile(java.lang.String[] args)
public static void commandLineCompile(java.lang.String[] args, boolean lookupUnnamedFiles)
public static void commandLineCompileWithErrorHandling(java.lang.String[] args, boolean lookupUnnamedFiles)
args
- command line argumentslookupUnnamedFiles
- do a lookup for .groovy files not part of
the given list of files to compile
public void compile(java.lang.String[] paths)
public void compile(java.io.File[] files)
public static org.apache.commons.cli.Options createCompilationOptions()
public static java.io.File createTempDir()
public static void deleteRecursive(java.io.File file)
public static void displayHelp(org.apache.commons.cli.Options options)
public static void displayVersion()
public static void doCompilation(CompilerConfiguration configuration, CompilationUnit unit, java.lang.String[] filenames)
public static void doCompilation(CompilerConfiguration configuration, CompilationUnit unit, java.lang.String[] filenames, boolean lookupUnnamedFiles)
public static CompilerConfiguration generateCompilerConfigurationFromOptions(org.apache.commons.cli.CommandLine cli)
public static java.lang.String[] generateFileNamesFromOptions(org.apache.commons.cli.CommandLine cli)
public static void main(java.lang.String[] args)
args
- command line arguments
public static boolean validateFiles(java.lang.String[] filenames)
Groovy Documentation