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

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

public class MavenGoalTag
extends GoalTag

Replacement for werkz's GoalTag which does not allow a goal to be redefined once defined. For Jelly scripts that are run which contain this tag it is assumed that they are being run in the order whereby the first definition wins.

Version:
$Id: MavenGoalTag.java 517014 2007-03-11 21:15:50Z ltheussl $
Author:
Brett Porter

Nested Class Summary
 class MavenGoalTag.MavenGoalAction
           
 
Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
MavenGoalTag()
          Construct.
 
Method Summary
 void doTag(XMLOutput output)
          Define a goal.
 WerkzProject getProject()
           
(package private)  void runBodyTag(Session session)
           
 
Methods inherited from class org.apache.maven.werkz.jelly.GoalTag
addPrereqs, getAction, getName, getPrereqs, setDescription, setName, setPrereqs
 
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, invokeBody, 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

MavenGoalTag

public MavenGoalTag()
Construct.

Method Detail

doTag

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

Specified by:
doTag in interface Tag
Overrides:
doTag in class GoalTag
Parameters:
output - The output sink.
Throws:
JellyTagException - If an error occurs while executing the tag.

runBodyTag

void runBodyTag(Session session)
          throws JellyTagException
Throws:
JellyTagException

getProject

public WerkzProject getProject()
Overrides:
getProject in class WerkzTagSupport
Returns:
the goal manager instance


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