org.codehaus.gram
Class GramTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.MatchingTask
              extended by org.codehaus.gram.GramTask
All Implemented Interfaces:
Cloneable, org.apache.tools.ant.types.selectors.SelectorContainer

public class GramTask
extends org.apache.tools.ant.taskdefs.MatchingTask

An Ant task for executing Gram scripts, which are Groovy scripts executed on the JAM context.

Version:
$Revision: 1520 $

Field Summary
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
GramTask()
           
 
Method Summary
 org.apache.tools.ant.types.Path createClasspath()
           
 org.apache.tools.ant.types.Path createToolpath()
           
 void execute()
           
 void setClasspath(org.apache.tools.ant.types.Path path)
           
 void setClasspathRef(org.apache.tools.ant.types.Reference r)
           
 void setDestDir(File destDir)
          Sets the directory into which source files should be generated.
 void setScriptDir(File scriptDir)
           
 void setSrcDir(org.apache.tools.ant.types.Path srcDir)
           
 void setToolpath(org.apache.tools.ant.types.Path path)
           
 void setToolpathRef(org.apache.tools.ant.types.Reference r)
           
 
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GramTask

public GramTask()
Method Detail

setDestDir

public void setDestDir(File destDir)
Sets the directory into which source files should be generated.


setScriptDir

public void setScriptDir(File scriptDir)

setSrcDir

public void setSrcDir(org.apache.tools.ant.types.Path srcDir)

setToolpath

public void setToolpath(org.apache.tools.ant.types.Path path)

setToolpathRef

public void setToolpathRef(org.apache.tools.ant.types.Reference r)

createToolpath

public org.apache.tools.ant.types.Path createToolpath()

setClasspath

public void setClasspath(org.apache.tools.ant.types.Path path)

setClasspathRef

public void setClasspathRef(org.apache.tools.ant.types.Reference r)

createClasspath

public org.apache.tools.ant.types.Path createClasspath()

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException


Copyright © 2004-2008 The Codehaus. All Rights Reserved.