throws JellyTagException
{
LOGGER.debug( "doTag(..):" + name );
Goal goal = getProject().getGoal( getName(), true );
goal.setDescription( this.description );
try
{
addPrereqs( goal );
}
catch ( CyclicGoalChainException e )
{
throw new JellyTagException( e );
}
Action action;
action = getAction();
if ( action == null )
{
action = new DefaultAction()
{
public void performAction( Session session )
throws Exception
{
performAction();
}
public void performAction()
throws Exception
{
LOGGER.debug( "Running action of target: " + getName() );
invokeBody( output );
}
};
}
goal.setAction( action );
}