org.apache.maven.jelly.tags.werkz
Class MavenAttainGoalTag

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended bycom.werken.werkz.jelly.WerkzTagSupport
          extended byorg.apache.maven.jelly.tags.werkz.MavenAttainGoalTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class MavenAttainGoalTag
extends com.werken.werkz.jelly.WerkzTagSupport

Replacement for werkz's AttainGoalTag which will lazy initialise goals.

Version:
$Id: MavenAttainGoalTag.java,v 1.2.2.8 2004/06/26 14:52:05 dion Exp $
Author:
Brett Porter

Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
MavenAttainGoalTag()
          Construct.
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput output)
          Evaluate the body to register all the various goals and pre/post conditions then run all the current targets
 java.lang.String getName()
           
 com.werken.werkz.WerkzProject getProject()
           
 com.werken.werkz.Session getSession()
          Retrieve the Session to use, if set.
 void invokeBody(org.apache.commons.jelly.XMLOutput output)
          Define a goal.
 void setName(java.lang.String name)
           
 void setSession(com.werken.werkz.Session session)
          Set the Session to use.
 
Methods inherited from class com.werken.werkz.jelly.WerkzTagSupport
getGoal
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MavenAttainGoalTag

public MavenAttainGoalTag()
Construct.

Method Detail

setSession

public void setSession(com.werken.werkz.Session session)
Set the Session to use.

Parameters:
session - The session.

getSession

public com.werken.werkz.Session getSession()
Retrieve the Session to use, if set.

Returns:
The session or null.

doTag

public void doTag(org.apache.commons.jelly.XMLOutput output)
           throws org.apache.commons.jelly.JellyTagException
Evaluate the body to register all the various goals and pre/post conditions then run all the current targets

Throws:
org.apache.commons.jelly.JellyTagException

invokeBody

public void invokeBody(org.apache.commons.jelly.XMLOutput output)
                throws org.apache.commons.jelly.JellyTagException
Define a goal.

Parameters:
output - The output sink.
Throws:
org.apache.commons.jelly.JellyTagException - If an error occurs while executing the tag.

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

getProject

public com.werken.werkz.WerkzProject getProject()


Copyright © 2001-2005 Apache Software Foundation. All Rights Reserved.