|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.tools.FileSystemCompiler
public class FileSystemCompiler extends Object
Command-line compiler (aka. groovyc).
Constructor Summary | |
FileSystemCompiler(CompilerConfiguration configuration)
|
|
FileSystemCompiler(CompilerConfiguration configuration, CompilationUnit cu)
|
Method Summary | |
---|---|
static int
|
checkFiles(String[] filenames)
|
static void
|
commandLineCompile(String[] args)
Same as main(args) except that exceptions are thrown out instead of causing the VM to exit. |
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 |
static void
|
commandLineCompileWithErrorHandling(String[] args, boolean lookupUnnamedFiles)
Primary entry point for compiling from the command line (using the groovyc script). |
void
|
compile(String[] paths)
|
void
|
compile(File[] files)
|
static Options
|
createCompilationOptions()
|
static File
|
createTempDir()
Creates a temporary directory in the default temporary directory (as specified by the system propery java.io.tmpdir. |
static void
|
deleteRecursive(File file)
|
static void
|
displayHelp(Options options)
|
static void
|
displayVersion()
|
static void
|
doCompilation(CompilerConfiguration configuration, CompilationUnit unit, String[] filenames)
|
static void
|
doCompilation(CompilerConfiguration configuration, CompilationUnit unit, String[] filenames, boolean lookupUnnamedFiles)
|
static CompilerConfiguration
|
generateCompilerConfigurationFromOptions(CommandLine cli)
|
static String[]
|
generateFileNamesFromOptions(CommandLine cli)
|
static void
|
main(String[] args)
Primary entry point for compiling from the command line (using the groovyc script). |
static boolean
|
validateFiles(String[] filenames)
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail |
---|
public FileSystemCompiler(CompilerConfiguration configuration)
public FileSystemCompiler(CompilerConfiguration configuration, CompilationUnit cu)
Method Detail |
---|
public static int checkFiles(String[] filenames)
public static void commandLineCompile(String[] args)
public static void commandLineCompile(String[] args, boolean lookupUnnamedFiles)
public static void commandLineCompileWithErrorHandling(String[] args, boolean lookupUnnamedFiles)
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 compile
public void compile(String[] paths)
public void compile(File[] files)
@SuppressWarnings public static Options createCompilationOptions()
@Deprecatedif (file.isFile()) { public static File createTempDir()
public static void deleteRecursive(File file)
public static void displayHelp(Options options)
public static void displayVersion()
public static void doCompilation(CompilerConfiguration configuration, CompilationUnit unit, String[] filenames)
public static void doCompilation(CompilerConfiguration configuration, CompilationUnit unit, String[] filenames, boolean lookupUnnamedFiles)
public static CompilerConfiguration generateCompilerConfigurationFromOptions(CommandLine cli)
public static String[] generateFileNamesFromOptions(CommandLine cli)
public static void main(String[] args)
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 arguments
public static boolean validateFiles(String[] filenames)
Copyright © 2003-2013 The Codehaus. All rights reserved.