public class FileSystemCompiler extends Object
Command-line compiler (aka. groovyc).
Modifiers | Name | Description |
---|---|---|
static class |
FileSystemCompiler.CompilationOptions |
|
static class |
FileSystemCompiler.VersionProvider |
|
Constructor and description |
---|
FileSystemCompiler
(CompilerConfiguration configuration) |
FileSystemCompiler
(CompilerConfiguration configuration, CompilationUnit cu) |
Type Params | Return Type | Name and description |
---|---|---|
|
public static int |
checkFiles(String[] filenames) |
|
public static void |
commandLineCompile(String[] args) Same as main(args) except that exceptions are thrown out instead of causing the VM to exit. |
|
public static void |
commandLineCompile(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 |
|
public static void |
commandLineCompileWithErrorHandling(String[] args, boolean lookupUnnamedFiles) Primary entry point for compiling from the command line (using the groovyc script). |
|
public void |
compile(String[] paths) |
|
public void |
compile(File[] files) |
|
public static CommandLine |
configureParser(FileSystemCompiler.CompilationOptions options) |
|
public static void |
deleteRecursive(File file) |
|
public static void |
displayHelp() Prints the usage help message for CompilationOptions to stderr. |
|
public static void |
displayHelp(PrintWriter writer) Prints the usage help message for the CompilationOptions to the specified PrintWriter. |
|
public static void |
displayVersion() Prints version information to stderr. |
|
public static void |
displayVersion(PrintWriter writer) Prints version information to the specified PrintWriter. |
|
public static void |
doCompilation(CompilerConfiguration configuration, CompilationUnit unit, String[] filenames) |
|
public static void |
doCompilation(CompilerConfiguration configuration, CompilationUnit unit, String[] filenames, boolean lookupUnnamedFiles) |
|
public static void |
main(String[] args) Primary entry point for compiling from the command line (using the groovyc script). |
|
public static boolean |
validateFiles(String[] filenames) |
Same as main(args) except that exceptions are thrown out instead of causing the VM to exit.
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
Primary entry point for compiling from the command line (using the groovyc script).
If calling inside a process and you don't want the JVM to exit on an error call commandLineCompile(String[]), which this method simply wraps
args
- command line argumentslookupUnnamedFiles
- do a lookup for .groovy files not part of
the given list of files to compilePrints the usage help message for CompilationOptions to stderr.
Prints the usage help message for the CompilationOptions to the specified PrintWriter.
Prints version information to stderr.
Prints version information to the specified PrintWriter.
Primary entry point for compiling from the command line (using the groovyc script).
If calling inside a process and you don't want the JVM to exit on an error call commandLineCompile(String[]), which this method simply wraps
args
- command line argumentsCopyright © 2003-2020 The Apache Software Foundation. All rights reserved.