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

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

public class MavenAttainGoalTag
extends WerkzTagSupport

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

Version:
$Id: MavenAttainGoalTag.java 517014 2007-03-11 21:15:50Z ltheussl $
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
 Session createSession()
          Retrieve the Session to use, if set.
 void doTag(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()
           
 WerkzProject getProject()
           
 void invokeBody(XMLOutput output)
          Define a goal.
 void setName(java.lang.String name)
           
 
Methods inherited from class org.apache.maven.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

createSession

public Session createSession()
Retrieve the Session to use, if set.

Returns:
The session or null.

doTag

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

Throws:
JellyTagException

invokeBody

public void invokeBody(XMLOutput output)
                throws JellyTagException
Define a goal.

Parameters:
output - The output sink.
Throws:
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 WerkzProject getProject()
Overrides:
getProject in class WerkzTagSupport
Returns:
the goal manager instance


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