org.apache.commons.jelly.tags.ant
Class AntTagLibrary
java.lang.Object
|
+--org.apache.commons.jelly.TagLibrary
|
+--org.apache.commons.jelly.tags.ant.AntTagLibrary
- public class AntTagLibrary
- extends TagLibrary
A Jelly custom tag library that allows Ant tasks to be called from inside Jelly.
- Version:
- $Revision: 1.6 $
- Author:
- James Strachan, bob mcwhirter
Method Summary |
static org.apache.tools.ant.Project |
createProject()
A helper method to create a new project
#### this method could move to an AntUtils class. |
TagScript |
createRuntimeTaskTagScript(java.lang.String taskName,
org.xml.sax.Attributes attributes)
|
TagScript |
createTagScript(java.lang.String name,
org.xml.sax.Attributes attributes)
Creates a new script to execute the given tag name and attributes |
org.apache.tools.ant.Project |
getProject()
|
static org.apache.tools.ant.Project |
getProject(JellyContext context)
A helper method which will attempt to find a project in the current context
or install one if need be. |
void |
setProject(org.apache.tools.ant.Project project)
Sets the Ant Project for this tag library. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AntTagLibrary
public AntTagLibrary()
AntTagLibrary
public AntTagLibrary(org.apache.tools.ant.Project project)
getProject
public static org.apache.tools.ant.Project getProject(JellyContext context)
- A helper method which will attempt to find a project in the current context
or install one if need be.
#### this method could move to an AntUtils class.
createProject
public static org.apache.tools.ant.Project createProject()
- A helper method to create a new project
#### this method could move to an AntUtils class.
createTagScript
public TagScript createTagScript(java.lang.String name,
org.xml.sax.Attributes attributes)
throws java.lang.Exception
- Creates a new script to execute the given tag name and attributes
- Overrides:
createTagScript
in class TagLibrary
createRuntimeTaskTagScript
public TagScript createRuntimeTaskTagScript(java.lang.String taskName,
org.xml.sax.Attributes attributes)
throws java.lang.Exception
getProject
public org.apache.tools.ant.Project getProject()
- Returns:
- the Ant Project for this tag library.
setProject
public void setProject(org.apache.tools.ant.Project project)
- Sets the Ant Project for this tag library.
Copyright © 2002-2002 Apache Software Foundation. All Rights Reserved.