|
Groovy 1.7.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.Java
org.codehaus.groovy.ant.Groovy
class Groovy extends Java
Executes a series of Groovy statements.
Statements can either be read in from a text file using the src attribute or from between the enclosing groovy tags.
Constructor Summary | |
Groovy()
|
Method Summary | |
---|---|
protected void
|
addClassPathes(GroovyClassLoader classLoader)
Adds the class pathes (if any) |
void
|
addFileset(FileSet set)
Adds a set of files (nested fileset attribute). |
void
|
addText(String txt)
Set an inline command to execute. |
def
|
createArg()
|
Path
|
createClasspath()
Returns a new path element that can be configured. |
protected void
|
execGroovy(String txt, PrintStream out)
Exec the statement. |
void
|
execute()
Load the file and then execute it |
Path
|
getClasspath()
Gets the classpath. |
static void
|
main(String[] args)
|
protected void
|
printResults(PrintStream out)
print any results in the statement. |
protected void
|
runStatements(Reader reader, PrintStream out)
Read in lines and execute them. |
void
|
setAppend(boolean append)
Whether output should be appended to or overwrite an existing file. |
void
|
setClasspath(Path classpath)
Sets the classpath for loading. |
void
|
setClasspathRef(Reference ref)
Set the classpath for loading using the classpath reference. |
void
|
setFork(boolean fork)
Should the script be executed using a forked process. |
void
|
setIncludeAntRuntime(boolean includeAntRuntime)
Should the system classpath be included on the classpath when forking. |
void
|
setOutput(File output)
Set the output file; optional, defaults to the Ant log. |
void
|
setSrc(File srcFile)
Set the name of the file to be run. |
void
|
setStacktrace(boolean stacktrace)
Enable compiler to report stack trace information if a problem occurs during compilation. |
void
|
setUseGroovyShell(boolean useGroovyShell)
Should a new GroovyShell be used when forking. |
Methods inherited from class Java | |
---|---|
setError, setInput, execute, handleInput, setClassname, setClasspath, createClasspath, setClasspathRef, setDir, createBootclasspath, setFailonerror, setFork, setErrorProperty, createArg, createJvmarg, addSysproperty, executeJava, setSpawn, createPermissions, setJar, setArgs, setCloneVm, setResultProperty, setJvmargs, setJvm, addSyspropertyset, setOutput, setInputString, setLogError, setOutputproperty, setMaxmemory, setJVMVersion, addEnv, setNewenvironment, setAppend, setTimeout, addAssertions, addConfiguredRedirector, clearArgs, getCommandLine, getSysProperties, log, log, log, log, init, maybeConfigure, getTaskName, getOwningTarget, setRuntimeConfigurableWrapper, getTaskType, setTaskType, setTaskName, setOwningTarget, getRuntimeConfigurableWrapper, reconfigure, perform, bindToOwner, clone, getLocation, getDescription, setLocation, setDescription, getProject, setProject, wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Methods inherited from class Task | |
---|---|
log, log, log, log, init, execute, maybeConfigure, getTaskName, getOwningTarget, setRuntimeConfigurableWrapper, getTaskType, setTaskType, setTaskName, setOwningTarget, getRuntimeConfigurableWrapper, reconfigure, perform, bindToOwner, clone, getLocation, getDescription, setLocation, setDescription, getProject, setProject, wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Methods inherited from class ProjectComponent | |
---|---|
clone, log, log, getLocation, getDescription, setLocation, setDescription, getProject, setProject, wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Constructor Detail |
---|
Groovy()
Method Detail |
---|
protected void addClassPathes(GroovyClassLoader classLoader)
public void addFileset(FileSet set)
public void addText(String txt)
public def createArg()
public Path createClasspath()
protected void execGroovy(String txt, PrintStream out)
public void execute()
public Path getClasspath()
public static void main(String[] args)
protected void printResults(PrintStream out)
protected void runStatements(Reader reader, PrintStream out)
public void setAppend(boolean append)
public void setClasspath(Path classpath)
public void setClasspathRef(Reference ref)
public void setFork(boolean fork)
public void setIncludeAntRuntime(boolean includeAntRuntime)
public void setOutput(File output)
public void setSrc(File srcFile)
public void setStacktrace(boolean stacktrace)
public void setUseGroovyShell(boolean useGroovyShell)
Copyright © 2003-2009 The Codehaus. All rights reserved.