Package org.codehaus.groovy.tools
Class FileSystemCompiler
java.lang.Object
org.codehaus.groovy.tools.FileSystemCompiler
Command-line compiler (aka. groovyc).
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic class
- 
Constructor SummaryConstructorsConstructorDescriptionFileSystemCompiler(CompilerConfiguration configuration) FileSystemCompiler(CompilerConfiguration configuration, CompilationUnit cu) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic intcheckFiles(String[] filenames) static voidcommandLineCompile(String[] args) Same as main(args) except that exceptions are thrown out instead of causing the VM to exit.static voidcommandLineCompile(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 controlledstatic voidcommandLineCompileWithErrorHandling(String[] args, boolean lookupUnnamedFiles) Primary entry point for compiling from the command line (using the groovyc script).voidvoidstatic picocli.CommandLinestatic voiddeleteRecursive(File file) static voidPrints the usage help message forFileSystemCompiler.CompilationOptionsto stderr.static voiddisplayHelp(PrintWriter writer) Prints the usage help message for theFileSystemCompiler.CompilationOptionsto the specified PrintWriter.static voidPrints version information to stderr.static voiddisplayVersion(PrintWriter writer) Prints version information to the specified PrintWriter.static voiddoCompilation(CompilerConfiguration configuration, CompilationUnit unit, String[] filenames) static voiddoCompilation(CompilerConfiguration configuration, CompilationUnit unit, String[] filenames, boolean lookupUnnamedFiles) static voidPrimary entry point for compiling from the command line (using the groovyc script).static booleanvalidateFiles(String[] filenames) 
- 
Constructor Details- 
FileSystemCompiler- Throws:
- ConfigurationException
 
- 
FileSystemCompilerpublic FileSystemCompiler(CompilerConfiguration configuration, CompilationUnit cu) throws ConfigurationException - Throws:
- ConfigurationException
 
 
- 
- 
Method Details- 
displayHelppublic static void displayHelp()Prints the usage help message forFileSystemCompiler.CompilationOptionsto stderr.- Since:
- 2.5
- See Also:
 
- 
displayHelpPrints the usage help message for theFileSystemCompiler.CompilationOptionsto the specified PrintWriter.- Since:
- 2.5
 
- 
displayVersionpublic static void displayVersion()Prints version information to stderr.- See Also:
 
- 
displayVersionPrints version information to the specified PrintWriter.- Since:
- 2.5
 
- 
checkFiles
- 
validateFiles
- 
commandLineCompileSame as main(args) except that exceptions are thrown out instead of causing the VM to exit.- Throws:
- Exception
 
- 
commandLineCompileSame 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- Throws:
- Exception
 
- 
configureParser
- 
mainPrimary 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 - Parameters:
- args- command line arguments
 
- 
commandLineCompileWithErrorHandlingPrimary 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 - Parameters:
- args- command line arguments
- lookupUnnamedFiles- do a lookup for .groovy files not part of the given list of files to compile
 
- 
doCompilationpublic static void doCompilation(CompilerConfiguration configuration, CompilationUnit unit, String[] filenames) throws Exception - Throws:
- Exception
 
- 
doCompilationpublic static void doCompilation(CompilerConfiguration configuration, CompilationUnit unit, String[] filenames, boolean lookupUnnamedFiles) throws Exception - Throws:
- Exception
 
- 
deleteRecursive
- 
compile- Throws:
- Exception
 
- 
compile- Throws:
- Exception
 
 
-