|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.groovy.tools.FileSystemCompiler
public class FileSystemCompiler
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(File[] files)
|
void |
compile(String[] paths)
|
static Options |
createCompilationOptions()
|
static File |
createTempDir()
|
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileSystemCompiler(CompilerConfiguration configuration)
throws ConfigurationException
ConfigurationException
public FileSystemCompiler(CompilerConfiguration configuration,
CompilationUnit cu)
throws ConfigurationException
ConfigurationException| Method Detail |
|---|
public void compile(String[] paths)
throws Exception
Exception
public void compile(File[] files)
throws Exception
Exceptionpublic static void displayHelp(Options options)
public static void displayVersion()
public static int checkFiles(String[] filenames)
public static boolean validateFiles(String[] filenames)
public static void commandLineCompile(String[] args)
throws Exception
Exception
public static void commandLineCompile(String[] args,
boolean lookupUnnamedFiles)
throws Exception
Exceptionpublic static void main(String[] args)
args - command line arguments
public static void commandLineCompileWithErrorHandling(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 static void doCompilation(CompilerConfiguration configuration,
CompilationUnit unit,
String[] filenames)
throws Exception
Exception
public static void doCompilation(CompilerConfiguration configuration,
CompilationUnit unit,
String[] filenames,
boolean lookupUnnamedFiles)
throws Exception
Exceptionpublic static String[] generateFileNamesFromOptions(CommandLine cli)
public static CompilerConfiguration generateCompilerConfigurationFromOptions(CommandLine cli)
public static Options createCompilationOptions()
public static File createTempDir()
throws IOException
IOExceptionpublic static void deleteRecursive(File file)
|
Copyright © 2003-2012 The Codehaus. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||