1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.maven.plugin;
17
18 import org.apache.maven.plugin.AbstractMojo;
19 import org.apache.maven.plugin.MojoExecutionException;
20 import org.apache.maven.plugin.MojoFailureException;
21 import org.apache.maven.project.MavenProject;
22 import org.kuali.maven.common.Extractor;
23
24
25
26
27
28
29
30
31 public class ExtractorMojo extends AbstractMojo {
32 Extractor extractor = new Extractor();
33
34
35
36
37
38
39
40
41 private MavenProject project;
42
43
44
45
46
47
48
49
50 private String majorVersionProperty;
51
52
53
54
55
56
57
58 private String scmTypeProperty;
59
60
61
62
63
64
65
66 private String scmUrlProperty;
67
68
69
70
71
72
73
74
75
76 private String svnTagBaseProperty;
77
78
79
80
81
82
83
84
85
86
87 private String svnBranchProperty;
88
89 @Override
90 public void execute() throws MojoExecutionException, MojoFailureException {
91 extractor.handleMajorVersion(this, project, majorVersionProperty);
92 extractor.handleScmType(this, project, scmTypeProperty);
93 extractor.handleScmUrl(this, project, scmUrlProperty);
94 extractor.handleSVNTagBase(this, project, svnTagBaseProperty);
95 extractor.handleSVNBranch(this, project, svnBranchProperty);
96 }
97
98 public MavenProject getProject() {
99 return project;
100 }
101
102 public void setProject(MavenProject project) {
103 this.project = project;
104 }
105
106 public String getMajorVersionProperty() {
107 return majorVersionProperty;
108 }
109
110 public void setMajorVersionProperty(String majorVersionProperty) {
111 this.majorVersionProperty = majorVersionProperty;
112 }
113
114 public String getScmTypeProperty() {
115 return scmTypeProperty;
116 }
117
118 public void setScmTypeProperty(String scmTypeProperty) {
119 this.scmTypeProperty = scmTypeProperty;
120 }
121
122 public String getScmUrlProperty() {
123 return scmUrlProperty;
124 }
125
126 public void setScmUrlProperty(String scmUrlProperty) {
127 this.scmUrlProperty = scmUrlProperty;
128 }
129
130 public String getSvnTagBaseProperty() {
131 return svnTagBaseProperty;
132 }
133
134 public void setSvnTagBaseProperty(String scmTagBaseProperty) {
135 this.svnTagBaseProperty = scmTagBaseProperty;
136 }
137
138 public String getSvnBranchProperty() {
139 return svnBranchProperty;
140 }
141
142 public void setSvnBranchProperty(String svnBranchProperty) {
143 this.svnBranchProperty = svnBranchProperty;
144 }
145 }