Groovy 2.2.0

org.codehaus.groovy.tools
[Java] Class FileSystemCompiler

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

FileSystemCompiler

public FileSystemCompiler(CompilerConfiguration configuration)


FileSystemCompiler

public FileSystemCompiler(CompilerConfiguration configuration, CompilationUnit cu)


 
Method Detail

checkFiles

public static int checkFiles(String[] filenames)


commandLineCompile

public static void commandLineCompile(String[] args)
Same as main(args) except that exceptions are thrown out instead of causing the VM to exit.


commandLineCompile

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


commandLineCompileWithErrorHandling

public static void commandLineCompileWithErrorHandling(String[] args, boolean lookupUnnamedFiles)
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

Parameters:
args - command line arguments
lookupUnnamedFiles - do a lookup for .groovy files not part of the given list of files to compile


compile

public void compile(String[] paths)


compile

public void compile(File[] files)


createCompilationOptions

@SuppressWarnings
public static Options createCompilationOptions()


createTempDir

@Deprecatedif (file.isFile()) {
public static File createTempDir()
Creates a temporary directory in the default temporary directory (as specified by the system propery java.io.tmpdir.
deprecated:
Use DefaultGroovyStaticMethods#createTempDir(java.io.File, String, String) instead.


deleteRecursive

public static void deleteRecursive(File file)


displayHelp

public static void displayHelp(Options options)


displayVersion

public static void displayVersion()


doCompilation

public static void doCompilation(CompilerConfiguration configuration, CompilationUnit unit, String[] filenames)


doCompilation

public static void doCompilation(CompilerConfiguration configuration, CompilationUnit unit, String[] filenames, boolean lookupUnnamedFiles)


generateCompilerConfigurationFromOptions

public static CompilerConfiguration generateCompilerConfigurationFromOptions(CommandLine cli)


generateFileNamesFromOptions

public static String[] generateFileNamesFromOptions(CommandLine cli)


main

public static void main(String[] args)
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

Parameters:
args - command line arguments


validateFiles

public static boolean validateFiles(String[] filenames)


 

Copyright © 2003-2013 The Codehaus. All rights reserved.