Extension points can now contribute multiple actions.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@25771 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2010-01-13 20:07:01 +00:00
1 parent 230333df15
commit 91f80263e5
23 files changed
+175 -98

No files matched your search

@@ -202,18 +202,12 @@ public final class MavenModuleSet extends AbstractMavenProject<MavenModuleSet,Ma
module.updateTransientActions();
}
if(publishers!=null) // this method can be loaded from within the onLoad method, where this might be null
for (BuildStep step : publishers) {
Action a = step.getProjectAction(this);
if(a!=null)
transientActions.add(a);
}
for (BuildStep step : publishers)
transientActions.addAll(step.getProjectActions(this));
if (buildWrappers!=null)
for (BuildWrapper step : buildWrappers) {
Action a = step.getProjectAction(this);
if(a!=null)
transientActions.add(a);
}
for (BuildWrapper step : buildWrappers)
transientActions.addAll(step.getProjectActions(this));
}
protected void addTransientActionsFromBuild(MavenModuleSetBuild build, Set<Class> added) {