Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Constructor and description |
---|
FileSystemCompiler
(CompilerConfiguration configuration) |
FileSystemCompiler
(CompilerConfiguration configuration, CompilationUnit cu) |
Type | Name and description |
---|---|
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 property 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) |
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 compileCreates a temporary directory in the default temporary directory (as specified by the system property java.io.tmpdir.
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-2015 The Apache Software Foundation. All rights reserved.