Save This Page
Home » apache-ant-1.7.1-src » org.apache.tools » ant » taskdefs » optional » script » [javadoc | source]
org.apache.tools.ant.taskdefs.optional.script
public class: ScriptDef [javadoc | source]
java.lang.Object
   org.apache.tools.ant.ProjectComponent
      org.apache.tools.ant.Task
         org.apache.tools.ant.taskdefs.AntlibDefinition
            org.apache.tools.ant.taskdefs.DefBase
               org.apache.tools.ant.taskdefs.optional.script.ScriptDef

All Implemented Interfaces:
    Cloneable

Define a task using a script
Nested Class Summary:
public static class  ScriptDef.Attribute  Class representing an attribute definition 
public static class  ScriptDef.NestedElement  Class to represent a nested element definition 
Fields inherited from org.apache.tools.ant.Task:
target,  taskName,  taskType,  wrapper
Fields inherited from org.apache.tools.ant.ProjectComponent:
project,  location,  description
Method from org.apache.tools.ant.taskdefs.optional.script.ScriptDef Summary:
add,   addAttribute,   addElement,   addText,   createNestedElement,   execute,   executeScript,   executeScript,   isAttributeSupported,   setLanguage,   setManager,   setName,   setProject,   setSrc
Methods from org.apache.tools.ant.taskdefs.DefBase:
createClasspath,   createLoader,   getClasspath,   getClasspathId,   getLoaderId,   hasCpDelegate,   init,   isReverseLoader,   setClasspath,   setClasspathRef,   setLoaderRef,   setReverseLoader
Methods from org.apache.tools.ant.taskdefs.AntlibDefinition:
getAntlibClassLoader,   getURI,   setAntlibClassLoader,   setURI
Methods from org.apache.tools.ant.Task:
bindToOwner,   execute,   getOwningTarget,   getRuntimeConfigurableWrapper,   getTaskName,   getTaskType,   getWrapper,   handleErrorFlush,   handleErrorOutput,   handleFlush,   handleInput,   handleOutput,   init,   isInvalid,   log,   log,   log,   log,   markInvalid,   maybeConfigure,   perform,   reconfigure,   setOwningTarget,   setRuntimeConfigurableWrapper,   setTaskName,   setTaskType
Methods from org.apache.tools.ant.ProjectComponent:
clone,   getDescription,   getLocation,   getProject,   log,   log,   setDescription,   setLocation,   setProject
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tools.ant.taskdefs.optional.script.ScriptDef Detail:
 public  void add(ResourceCollection resource) 
    Add any source resource.
 public  void addAttribute(ScriptDef.Attribute attribute) 
    Add an attribute definition to this script.
 public  void addElement(ScriptDef.NestedElement nestedElement) 
    Add a nested element definition.
 public  void addText(String text) 
    Set the script text.
 public Object createNestedElement(String elementName) 
    Create a nested element to be configured.
 public  void execute() 
    Define the script.
 public  void executeScript(Map attributes,
    Map elements) 
Deprecated! since - 1.7. Use executeScript(attribute, elements, instance) instead.

    Execute the script.
 public  void executeScript(Map attributes,
    Map elements,
    ScriptDefBase instance) 
    Execute the script. This is called by the script instance to execute the script for this definition.
 public boolean isAttributeSupported(String attributeName) 
    Indicates whether the task supports a given attribute name
 public  void setLanguage(String language) 
    Defines the language (required).
 public  void setManager(String manager) 
    Defines the manager.
 public  void setName(String name) 
    set the name under which this script will be activated in a build file
 public  void setProject(Project project) 
    Set the project.
 public  void setSrc(File file) 
    Load the script from an external file ; optional.