org.apache.maven.plugin
Class GoalToJellyScriptHousingMapper

java.lang.Object
  extended byorg.apache.maven.plugin.GoalToJellyScriptHousingMapper
All Implemented Interfaces:
org.apache.maven.plugin.PluginDefinitionHandler

public class GoalToJellyScriptHousingMapper
extends java.lang.Object
implements org.apache.maven.plugin.PluginDefinitionHandler

This is the process that we use:

- Start with goal X. - Gather prereqs for X.

We want to find all goals that will be executed due to X being executed we don't care about ordering here because when werkz executes it will sort that out for us. We just need to make sure all the appropriate plugins have been loaded so that werkz can find the goals it needs.

For a single goal we will collect the set of goals that will be executed with it.


Constructor Summary
GoalToJellyScriptHousingMapper()
          Default constructor.
 
Method Summary
 void addDynaTagLib(java.lang.String tagLibUri, JellyScriptHousing jellyScriptHousing)
           
 void addGoal(java.lang.String name, java.lang.String prereqs, java.lang.String description, JellyScriptHousing jellyScriptHousing)
           
 void addPluginDynaTagDep(JellyScriptHousing housing, java.lang.String uri)
           
 void addPostGoal(java.lang.String name, JellyScriptHousing jellyScriptHousing)
           
 void addPreGoal(java.lang.String name, JellyScriptHousing jellyScriptHousing)
           
 java.lang.String getDefaultGoalName()
           
 com.werken.werkz.Goal[] getExecutionChain(java.lang.String name, com.werken.werkz.WerkzProject project)
           
 JellyScriptHousing getPluginHousing(java.lang.String goal)
           
 void removePluginDynaTagDep(JellyScriptHousing housing, java.lang.String uri)
           
 void setDefaultGoalName(java.lang.String defaultGoalName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoalToJellyScriptHousingMapper

public GoalToJellyScriptHousingMapper()
Default constructor.

Method Detail

getDefaultGoalName

public java.lang.String getDefaultGoalName()

setDefaultGoalName

public void setDefaultGoalName(java.lang.String defaultGoalName)
Specified by:
setDefaultGoalName in interface org.apache.maven.plugin.PluginDefinitionHandler

getPluginHousing

public JellyScriptHousing getPluginHousing(java.lang.String goal)

getExecutionChain

public com.werken.werkz.Goal[] getExecutionChain(java.lang.String name,
                                                 com.werken.werkz.WerkzProject project)
                                          throws com.werken.werkz.NoSuchGoalException
Throws:
com.werken.werkz.NoSuchGoalException

addPluginDynaTagDep

public void addPluginDynaTagDep(JellyScriptHousing housing,
                                java.lang.String uri)
Specified by:
addPluginDynaTagDep in interface org.apache.maven.plugin.PluginDefinitionHandler

removePluginDynaTagDep

public void removePluginDynaTagDep(JellyScriptHousing housing,
                                   java.lang.String uri)
Specified by:
removePluginDynaTagDep in interface org.apache.maven.plugin.PluginDefinitionHandler

addDynaTagLib

public void addDynaTagLib(java.lang.String tagLibUri,
                          JellyScriptHousing jellyScriptHousing)
Specified by:
addDynaTagLib in interface org.apache.maven.plugin.PluginDefinitionHandler

addPostGoal

public void addPostGoal(java.lang.String name,
                        JellyScriptHousing jellyScriptHousing)
Specified by:
addPostGoal in interface org.apache.maven.plugin.PluginDefinitionHandler

addPreGoal

public void addPreGoal(java.lang.String name,
                       JellyScriptHousing jellyScriptHousing)
Specified by:
addPreGoal in interface org.apache.maven.plugin.PluginDefinitionHandler

addGoal

public void addGoal(java.lang.String name,
                    java.lang.String prereqs,
                    java.lang.String description,
                    JellyScriptHousing jellyScriptHousing)
Specified by:
addGoal in interface org.apache.maven.plugin.PluginDefinitionHandler


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