Groovy Documentation

## org.codehaus.groovy.grails.compiler
[Groovy] Class GrailsCompiler

    java.lang.Object
      org.apache.tools.ant.ProjectComponent
          org.apache.tools.ant.Task
              org.apache.tools.ant.taskdefs.MatchingTask
                  org.codehaus.groovy.ant.Groovyc
                      org.codehaus.groovy.grails.compiler.GrailsCompiler

    class GrailsCompiler
    extends org.codehaus.groovy.ant.Groovyc

An extended version of the Groovy compiler that sets up the Grails ResourceLoader upon compilation.

Authors:
  Graeme Rocher

Since:
  0.6

Property Summary
`java.lang.String` | `projectName`
`java.lang.Object` | `resolver`

Method Summary
`void` | `compile()`
`void` | `scanDir(java.io.File srcDir, java.io.File destDir, String[] files)`

Methods inherited from class org.codehaus.groovy.ant.Groovyc

org.codehaus.groovy.ant.Groovyc#getEncoding(), org.codehaus.groovy.ant.Groovyc#execute(), org.codehaus.groovy.ant.Groovyc#setEncoding(java.lang.String), org.codehaus.groovy.ant.Groovyc#getClasspath(), org.codehaus.groovy.ant.Groovyc#setClasspath(org.apache.tools.ant.types.Path), org.codehaus.groovy.ant.Groovyc#setVerbose(boolean), org.codehaus.groovy.ant.Groovyc#setTargetBytecode(java.lang.String), org.codehaus.groovy.ant.Groovyc#getVerbose(), org.codehaus.groovy.ant.Groovyc#getTargetBytecode(), org.codehaus.groovy.ant.Groovyc#setFork(boolean), org.codehaus.groovy.ant.Groovyc#getMemoryInitialSize(), org.codehaus.groovy.ant.Groovyc#setMemoryInitialSize(java.lang.String), org.codehaus.groovy.ant.Groovyc#getMemoryMaximumSize(), org.codehaus.groovy.ant.Groovyc#setMemoryMaximumSize(java.lang.String), org.codehaus.groovy.ant.Groovyc#setStacktrace(boolean), org.codehaus.groovy.ant.Groovyc#createClasspath(), org.codehaus.groovy.ant.Groovyc#setClasspathRef(org.apache.tools.ant.types.Reference), org.codehaus.groovy.ant.Groovyc#createSrc(), org.codehaus.groovy.ant.Groovyc#setSrcdir(org.apache.tools.ant.types.Path), org.codehaus.groovy.ant.Groovyc#getSrcdir(), org.codehaus.groovy.ant.Groovyc#setScriptExtension(java.lang.String), org.codehaus.groovy.ant.Groovyc#getScriptExtension(), org.codehaus.groovy.ant.Groovyc#setDestdir(java.io.File), org.codehaus.groovy.ant.Groovyc#getDestdir(), org.codehaus.groovy.ant.Groovyc#setSourcepath(org.apache.tools.ant.types.Path), org.codehaus.groovy.ant.Groovyc#getSourcepath(), org.codehaus.groovy.ant.Groovyc#createSourcepath(), org.codehaus.groovy.ant.Groovyc#setSourcepathRef(org.apache.tools.ant.types.Reference), org.codehaus.groovy.ant.Groovyc#setListfiles(boolean), org.codehaus.groovy.ant.Groovyc#getListfiles(), org.codehaus.groovy.ant.Groovyc#setFailonerror(boolean), org.codehaus.groovy.ant.Groovyc#setProceed(boolean), org.codehaus.groovy.ant.Groovyc#getFailonerror(), org.codehaus.groovy.ant.Groovyc#setIncludeantruntime(boolean), org.codehaus.groovy.ant.Groovyc#getIncludeantruntime(), org.codehaus.groovy.ant.Groovyc#setIncludejavaruntime(boolean), org.codehaus.groovy.ant.Groovyc#getIncludejavaruntime(), org.codehaus.groovy.ant.Groovyc#setJavaHome(java.io.File), org.codehaus.groovy.ant.Groovyc#setUpdatedProperty(java.lang.String), org.codehaus.groovy.ant.Groovyc#setErrorProperty(java.lang.String), org.codehaus.groovy.ant.Groovyc#setIncludeDestClasses(boolean), org.codehaus.groovy.ant.Groovyc#isIncludeDestClasses(), org.codehaus.groovy.ant.Groovyc#getTaskSuccess(), org.codehaus.groovy.ant.Groovyc#addConfiguredJavac(org.apache.tools.ant.taskdefs.Javac), org.codehaus.groovy.ant.Groovyc#getFileList(), org.codehaus.groovy.ant.Groovyc#setStubdir(java.io.File), org.codehaus.groovy.ant.Groovyc#getStubdir(), org.codehaus.groovy.ant.Groovyc#setKeepStubs(boolean), org.codehaus.groovy.ant.Groovyc#getKeepStubs(), org.codehaus.groovy.ant.Groovyc#add(org.apache.tools.ant.types.selectors.FileSelector), org.codehaus.groovy.ant.Groovyc#addDate(org.apache.tools.ant.types.selectors.DateSelector), org.codehaus.groovy.ant.Groovyc#setIncludes(java.lang.String), org.codehaus.groovy.ant.Groovyc#setExcludes(java.lang.String), org.codehaus.groovy.ant.Groovyc#setCaseSensitive(boolean), org.codehaus.groovy.ant.Groovyc#setProject(org.apache.tools.ant.Project), org.codehaus.groovy.ant.Groovyc#setFollowSymlinks(boolean), org.codehaus.groovy.ant.Groovyc#createInclude(), org.codehaus.groovy.ant.Groovyc#createIncludesFile(), org.codehaus.groovy.ant.Groovyc#createExclude(), org.codehaus.groovy.ant.Groovyc#createExcludesFile(), org.codehaus.groovy.ant.Groovyc#createPatternSet(), org.codehaus.groovy.ant.Groovyc#XsetItems(java.lang.String), org.codehaus.groovy.ant.Groovyc#XsetIgnore(java.lang.String), org.codehaus.groovy.ant.Groovyc#setDefaultexcludes(boolean), org.codehaus.groovy.ant.Groovyc#setIncludesfile(java.io.File), org.codehaus.groovy.ant.Groovyc#setExcludesfile(java.io.File), org.codehaus.groovy.ant.Groovyc#hasSelectors(), org.codehaus.groovy.ant.Groovyc#selectorCount(), org.codehaus.groovy.ant.Groovyc#getSelectors(org.apache.tools.ant.Project), org.codehaus.groovy.ant.Groovyc#selectorElements(), org.codehaus.groovy.ant.Groovyc#appendSelector(org.apache.tools.ant.types.selectors.FileSelector), org.codehaus.groovy.ant.Groovyc#addSelector(org.apache.tools.ant.types.selectors.SelectSelector), org.codehaus.groovy.ant.Groovyc#addAnd(org.apache.tools.ant.types.selectors.AndSelector), org.codehaus.groovy.ant.Groovyc#addOr(org.apache.tools.ant.types.selectors.OrSelector), org.codehaus.groovy.ant.Groovyc#addNot(org.apache.tools.ant.types.selectors.NotSelector), org.codehaus.groovy.ant.Groovyc#addNone(org.apache.tools.ant.types.selectors.NoneSelector), org.codehaus.groovy.ant.Groovyc#addMajority(org.apache.tools.ant.types.selectors.MajoritySelector), org.codehaus.groovy.ant.Groovyc#addSize(org.apache.tools.ant.types.selectors.SizeSelector), org.codehaus.groovy.ant.Groovyc#addFilename(org.apache.tools.ant.types.selectors.FilenameSelector), org.codehaus.groovy.ant.Groovyc#addCustom(org.apache.tools.ant.types.selectors.ExtendSelector), org.codehaus.groovy.ant.Groovyc#addContains(org.apache.tools.ant.types.selectors.ContainsSelector), org.codehaus.groovy.ant.Groovyc#addPresent(org.apache.tools.ant.types.selectors.PresentSelector), org.codehaus.groovy.ant.Groovyc#addDepth(org.apache.tools.ant.types.selectors.DepthSelector), org.codehaus.groovy.ant.Groovyc#addDepend(org.apache.tools.ant.types.selectors.DependSelector), org.codehaus.groovy.ant.Groovyc#addContainsRegexp(org.apache.tools.ant.types.selectors.ContainsRegexpSelector), org.codehaus.groovy.ant.Groovyc#addDifferent(org.apache.tools.ant.types.selectors.DifferentSelector), org.codehaus.groovy.ant.Groovyc#addType(org.apache.tools.ant.types.selectors.TypeSelector), org.codehaus.groovy.ant.Groovyc#addModified(org.apache.tools.ant.types.selectors.modifiedselector.ModifiedSelector), org.codehaus.groovy.ant.Groovyc#log(java.lang.Throwable, int), org.codehaus.groovy.ant.Groovyc#log(java.lang.String, java.lang.Throwable, int), org.codehaus.groovy.ant.Groovyc#log(java.lang.String), org.codehaus.groovy.ant.Groovyc#log(java.lang.String, int), org.codehaus.groovy.ant.Groovyc#init(), org.codehaus.groovy.ant.Groovyc#getOwningTarget(), org.codehaus.groovy.ant.Groovyc#getTaskName(), org.codehaus.groovy.ant.Groovyc#getTaskType(), org.codehaus.groovy.ant.Groovyc#setTaskType(java.lang.String), org.codehaus.groovy.ant.Groovyc#setTaskName(java.lang.String), org.codehaus.groovy.ant.Groovyc#setOwningTarget(org.apache.tools.ant.Target), org.codehaus.groovy.ant.Groovyc#getRuntimeConfigurableWrapper(), org.codehaus.groovy.ant.Groovyc#setRuntimeConfigurableWrapper(org.apache.tools.ant.RuntimeConfigurable), org.codehaus.groovy.ant.Groovyc#maybeConfigure(), org.codehaus.groovy.ant.Groovyc#perform(), org.codehaus.groovy.ant.Groovyc#reconfigure(), org.codehaus.groovy.ant.Groovyc#bindToOwner(org.apache.tools.ant.Task), org.codehaus.groovy.ant.Groovyc#clone(), org.codehaus.groovy.ant.Groovyc#getLocation(), org.codehaus.groovy.ant.Groovyc#getProject(), org.codehaus.groovy.ant.Groovyc#getDescription(), org.codehaus.groovy.ant.Groovyc#setLocation(org.apache.tools.ant.Location), org.codehaus.groovy.ant.Groovyc#setDescription(java.lang.String), org.codehaus.groovy.ant.Groovyc#wait(), org.codehaus.groovy.ant.Groovyc#wait(long), org.codehaus.groovy.ant.Groovyc#wait(long, int), org.codehaus.groovy.ant.Groovyc#equals(java.lang.Object), org.codehaus.groovy.ant.Groovyc#toString(), org.codehaus.groovy.ant.Groovyc#hashCode(), org.codehaus.groovy.ant.Groovyc#getClass(), org.codehaus.groovy.ant.Groovyc#notify(), org.codehaus.groovy.ant.Groovyc#notifyAll()

Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask

org.apache.tools.ant.taskdefs.MatchingTask#add(org.apache.tools.ant.types.selectors.FileSelector), org.apache.tools.ant.taskdefs.MatchingTask#addDate(org.apache.tools.ant.types.selectors.DateSelector), org.apache.tools.ant.taskdefs.MatchingTask#setIncludes(java.lang.String), org.apache.tools.ant.taskdefs.MatchingTask#setExcludes(java.lang.String), org.apache.tools.ant.taskdefs.MatchingTask#setCaseSensitive(boolean), org.apache.tools.ant.taskdefs.MatchingTask#setProject(org.apache.tools.ant.Project), org.apache.tools.ant.taskdefs.MatchingTask#setFollowSymlinks(boolean), org.apache.tools.ant.taskdefs.MatchingTask#createInclude(), org.apache.tools.ant.taskdefs.MatchingTask#createIncludesFile(), org.apache.tools.ant.taskdefs.MatchingTask#createExclude(), org.apache.tools.ant.taskdefs.MatchingTask#createExcludesFile(), org.apache.tools.ant.taskdefs.MatchingTask#createPatternSet(), org.apache.tools.ant.taskdefs.MatchingTask#XsetItems(java.lang.String), org.apache.tools.ant.taskdefs.MatchingTask#XsetIgnore(java.lang.String), org.apache.tools.ant.taskdefs.MatchingTask#setDefaultexcludes(boolean), org.apache.tools.ant.taskdefs.MatchingTask#setIncludesfile(java.io.File), org.apache.tools.ant.taskdefs.MatchingTask#setExcludesfile(java.io.File), org.apache.tools.ant.taskdefs.MatchingTask#hasSelectors(), org.apache.tools.ant.taskdefs.MatchingTask#selectorCount(), org.apache.tools.ant.taskdefs.MatchingTask#getSelectors(org.apache.tools.ant.Project), org.apache.tools.ant.taskdefs.MatchingTask#selectorElements(), org.apache.tools.ant.taskdefs.MatchingTask#appendSelector(org.apache.tools.ant.types.selectors.FileSelector), org.apache.tools.ant.taskdefs.MatchingTask#addSelector(org.apache.tools.ant.types.selectors.SelectSelector), org.apache.tools.ant.taskdefs.MatchingTask#addAnd(org.apache.tools.ant.types.selectors.AndSelector), org.apache.tools.ant.taskdefs.MatchingTask#addOr(org.apache.tools.ant.types.selectors.OrSelector), org.apache.tools.ant.taskdefs.MatchingTask#addNot(org.apache.tools.ant.types.selectors.NotSelector), org.apache.tools.ant.taskdefs.MatchingTask#addNone(org.apache.tools.ant.types.selectors.NoneSelector), org.apache.tools.ant.taskdefs.MatchingTask#addMajority(org.apache.tools.ant.types.selectors.MajoritySelector), org.apache.tools.ant.taskdefs.MatchingTask#addSize(org.apache.tools.ant.types.selectors.SizeSelector), org.apache.tools.ant.taskdefs.MatchingTask#addFilename(org.apache.tools.ant.types.selectors.FilenameSelector), org.apache.tools.ant.taskdefs.MatchingTask#addCustom(org.apache.tools.ant.types.selectors.ExtendSelector), org.apache.tools.ant.taskdefs.MatchingTask#addContains(org.apache.tools.ant.types.selectors.ContainsSelector), org.apache.tools.ant.taskdefs.MatchingTask#addPresent(org.apache.tools.ant.types.selectors.PresentSelector), org.apache.tools.ant.taskdefs.MatchingTask#addDepth(org.apache.tools.ant.types.selectors.DepthSelector), org.apache.tools.ant.taskdefs.MatchingTask#addDepend(org.apache.tools.ant.types.selectors.DependSelector), org.apache.tools.ant.taskdefs.MatchingTask#addContainsRegexp(org.apache.tools.ant.types.selectors.ContainsRegexpSelector), org.apache.tools.ant.taskdefs.MatchingTask#addDifferent(org.apache.tools.ant.types.selectors.DifferentSelector), org.apache.tools.ant.taskdefs.MatchingTask#addType(org.apache.tools.ant.types.selectors.TypeSelector), org.apache.tools.ant.taskdefs.MatchingTask#addModified(org.apache.tools.ant.types.selectors.modifiedselector.ModifiedSelector), org.apache.tools.ant.taskdefs.MatchingTask#log(java.lang.Throwable, int), org.apache.tools.ant.taskdefs.MatchingTask#log(java.lang.String, java.lang.Throwable, int), org.apache.tools.ant.taskdefs.MatchingTask#log(java.lang.String), org.apache.tools.ant.taskdefs.MatchingTask#log(java.lang.String, int), org.apache.tools.ant.taskdefs.MatchingTask#init(), org.apache.tools.ant.taskdefs.MatchingTask#execute(), org.apache.tools.ant.taskdefs.MatchingTask#getOwningTarget(), org.apache.tools.ant.taskdefs.MatchingTask#getTaskName(), org.apache.tools.ant.taskdefs.MatchingTask#getTaskType(), org.apache.tools.ant.taskdefs.MatchingTask#setTaskType(java.lang.String), org.apache.tools.ant.taskdefs.MatchingTask#setTaskName(java.lang.String), org.apache.tools.ant.taskdefs.MatchingTask#setOwningTarget(org.apache.tools.ant.Target), org.apache.tools.ant.taskdefs.MatchingTask#getRuntimeConfigurableWrapper(), org.apache.tools.ant.taskdefs.MatchingTask#setRuntimeConfigurableWrapper(org.apache.tools.ant.RuntimeConfigurable), org.apache.tools.ant.taskdefs.MatchingTask#maybeConfigure(), org.apache.tools.ant.taskdefs.MatchingTask#perform(), org.apache.tools.ant.taskdefs.MatchingTask#reconfigure(), org.apache.tools.ant.taskdefs.MatchingTask#bindToOwner(org.apache.tools.ant.Task), org.apache.tools.ant.taskdefs.MatchingTask#clone(), org.apache.tools.ant.taskdefs.MatchingTask#getLocation(), org.apache.tools.ant.taskdefs.MatchingTask#getProject(), org.apache.tools.ant.taskdefs.MatchingTask#getDescription(), org.apache.tools.ant.taskdefs.MatchingTask#setLocation(org.apache.tools.ant.Location), org.apache.tools.ant.taskdefs.MatchingTask#setDescription(java.lang.String), org.apache.tools.ant.taskdefs.MatchingTask#wait(), org.apache.tools.ant.taskdefs.MatchingTask#wait(long), org.apache.tools.ant.taskdefs.MatchingTask#wait(long, int), org.apache.tools.ant.taskdefs.MatchingTask#equals(java.lang.Object), org.apache.tools.ant.taskdefs.MatchingTask#toString(), org.apache.tools.ant.taskdefs.MatchingTask#hashCode(), org.apache.tools.ant.taskdefs.MatchingTask#getClass(), org.apache.tools.ant.taskdefs.MatchingTask#notify(), org.apache.tools.ant.taskdefs.MatchingTask#notifyAll()

Methods inherited from class org.apache.tools.ant.Task

org.apache.tools.ant.Task#log(java.lang.Throwable, int), org.apache.tools.ant.Task#log(java.lang.String, java.lang.Throwable, int), org.apache.tools.ant.Task#log(java.lang.String), org.apache.tools.ant.Task#log(java.lang.String, int), org.apache.tools.ant.Task#init(), org.apache.tools.ant.Task#execute(), org.apache.tools.ant.Task#getOwningTarget(), org.apache.tools.ant.Task#getTaskName(), org.apache.tools.ant.Task#getTaskType(), org.apache.tools.ant.Task#setTaskType(java.lang.String), org.apache.tools.ant.Task#setTaskName(java.lang.String), org.apache.tools.ant.Task#setOwningTarget(org.apache.tools.ant.Target), org.apache.tools.ant.Task#getRuntimeConfigurableWrapper(), org.apache.tools.ant.Task#setRuntimeConfigurableWrapper(org.apache.tools.ant.RuntimeConfigurable), org.apache.tools.ant.Task#maybeConfigure(), org.apache.tools.ant.Task#perform(), org.apache.tools.ant.Task#reconfigure(), org.apache.tools.ant.Task#bindToOwner(org.apache.tools.ant.Task), org.apache.tools.ant.Task#clone(), org.apache.tools.ant.Task#getLocation(), org.apache.tools.ant.Task#getProject(), org.apache.tools.ant.Task#getDescription(), org.apache.tools.ant.Task#setLocation(org.apache.tools.ant.Location), org.apache.tools.ant.Task#setDescription(java.lang.String), org.apache.tools.ant.Task#setProject(org.apache.tools.ant.Project), org.apache.tools.ant.Task#wait(), org.apache.tools.ant.Task#wait(long), org.apache.tools.ant.Task#wait(long, int), org.apache.tools.ant.Task#equals(java.lang.Object), org.apache.tools.ant.Task#toString(), org.apache.tools.ant.Task#hashCode(), org.apache.tools.ant.Task#getClass(), org.apache.tools.ant.Task#notify(), org.apache.tools.ant.Task#notifyAll()

Methods inherited from class org.apache.tools.ant.ProjectComponent

org.apache.tools.ant.ProjectComponent#clone(), org.apache.tools.ant.ProjectComponent#log(java.lang.String, int), org.apache.tools.ant.ProjectComponent#log(java.lang.String), org.apache.tools.ant.ProjectComponent#getLocation(), org.apache.tools.ant.ProjectComponent#getProject(), org.apache.tools.ant.ProjectComponent#getDescription(), org.apache.tools.ant.ProjectComponent#setLocation(org.apache.tools.ant.Location), org.apache.tools.ant.ProjectComponent#setDescription(java.lang.String), org.apache.tools.ant.ProjectComponent#setProject(org.apache.tools.ant.Project), org.apache.tools.ant.ProjectComponent#wait(), org.apache.tools.ant.ProjectComponent#wait(long), org.apache.tools.ant.ProjectComponent#wait(long, int), org.apache.tools.ant.ProjectComponent#equals(java.lang.Object), org.apache.tools.ant.ProjectComponent#toString(), org.apache.tools.ant.ProjectComponent#hashCode(), org.apache.tools.ant.ProjectComponent#getClass(), org.apache.tools.ant.ProjectComponent#notify(), org.apache.tools.ant.ProjectComponent#notifyAll()

Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()

Property Detail

### projectName

    java.lang.String projectName

### resolver

    java.lang.Object resolver

Method Detail

### compile

    void compile()

### scanDir

    @Override
    void scanDir(java.io.File srcDir, java.io.File destDir, String[] files)

Groovy Documentation