File D:\maven-qcr-plugin-testsunitaires\qcr4java\jenkins-master\target\site\qc\maven-plugin\src\main\java\hudson\maven\UnbuiltModuleAction.java.html

1 package hudson.maven;
2
3 import hudson.model.Action;
4
5 import java.util.ArrayList;
6 import java.util.Collection;
7 import java.util.List;
8
9 /**
10 * Action which remembers all module which have not been built since the last successful build
11 * though they should have been, because they have SCM changes since then.
12 *
13 * See JENKINS-5764
14 *
15 * @author kutzi
16 */
17 public class UnbuiltModuleAction implements Action {
18
19 private List<ModuleName> moduleNames = new ArrayList<ModuleName>();
20
21 public void addUnbuiltModule(ModuleName moduleName) {
22 this.moduleNames.add(moduleName);
23 }
24
25 public boolean removeUnbuildModule(ModuleName moduleName) {
26 return this.moduleNames.remove(moduleName);
27 }
28
29 public Collection<ModuleName> getUnbuildModules() {
30 return this.moduleNames;
31 }
32
33 /**
34 * {@inheritDoc}
35 */
36 public String getIconFileName() {
37 return null;
38 }
39
40 /**
41 * {@inheritDoc}
42 */
43 public String getDisplayName() {
44 return "Unbuilt Modules";
45 }
46
47 /**
48 * {@inheritDoc}
49 */
50 public String getUrlName() {
51 return null;
52 }
53
54 }
55