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

Field Summary
static java.lang.String PROJECT_CONTEXT_HANDLE
           
 
Constructor Summary
AntTagLibrary()
           
 
Method Summary
 TagScript createCustomTagScript(java.lang.String name, org.xml.sax.Attributes attributes)
           
static org.apache.tools.ant.Project createProject(JellyContext context)
          A helper method to create a new project #### this method could move to an AntUtils class.
 Tag createTag(java.lang.String name)
          A helper method which creates an AntTag instance for the given element name
 TagScript createTagScript(java.lang.String name, org.xml.sax.Attributes attributes)
          Creates a new script to execute the given tag name and attributes
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.
static void setProject(JellyContext context, org.apache.tools.ant.Project project)
          Sets the Ant Project to be used for this JellyContext.
 
Methods inherited from class org.apache.commons.jelly.TagLibrary
createExpression, createTag, getExpressionFactory, getTagClasses, registerTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROJECT_CONTEXT_HANDLE

public static final java.lang.String PROJECT_CONTEXT_HANDLE
Constructor Detail

AntTagLibrary

public AntTagLibrary()
Method Detail

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.

setProject

public static void setProject(JellyContext context,
                              org.apache.tools.ant.Project project)
Sets the Ant Project to be used for this JellyContext. #### this method could move to an AntUtils class.

createProject

public static org.apache.tools.ant.Project createProject(JellyContext context)
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

createCustomTagScript

public TagScript createCustomTagScript(java.lang.String name,
                                       org.xml.sax.Attributes attributes)
                                throws java.lang.Exception
Returns:
a new TagScript for any custom, statically defined tags, like 'fileScanner'

createTag

public Tag createTag(java.lang.String name)
              throws java.lang.Exception
A helper method which creates an AntTag instance for the given element name


Copyright © 2002-2002 Apache Software Foundation. All Rights Reserved.