Skip to content

Commit 6dbec39

Browse files
committed
POM: add accessors for more POM elements
In particular, we will need to access the issueManagement URL for the forthcoming issue reporting framework. Since issueManagement is one of a trio of elements (together with scm and ciManagement), let's add accessors for all three.
1 parent d9362e1 commit 6dbec39

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</parent>
1111

1212
<artifactId>scijava-common</artifactId>
13-
<version>2.43.1-SNAPSHOT</version>
13+
<version>2.44.0-SNAPSHOT</version>
1414

1515
<name>SciJava Common</name>
1616
<description>SciJava Common is a shared library for SciJava software. It provides a plugin framework, with an extensible mechanism for service discovery, backed by its own annotation processor, so that plugins can be loaded dynamically. It is used by both ImageJ and SCIFIO.</description>

src/main/java/org/scijava/util/POM.java

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,46 @@ public String getOrganizationURL() {
126126
return cdata("//project/organization/url");
127127
}
128128

129+
/** Gets the SCM connection string. */
130+
public String getSCMConnection() {
131+
return cdata("//project/scm/connection");
132+
}
133+
134+
/** Gets the SCM developerConnection string. */
135+
public String getSCMDeveloperConnection() {
136+
return cdata("//project/scm/developerConnection");
137+
}
138+
139+
/** Gets the SCM tag. */
140+
public String getSCMTag() {
141+
return cdata("//project/scm/tag");
142+
}
143+
144+
/** Gets the SCM URL. */
145+
public String getSCMURL() {
146+
return cdata("//project/scm/url");
147+
}
148+
149+
/** Gets the issue management system. */
150+
public String getIssueManagementSystem() {
151+
return cdata("//project/issueManagement/system");
152+
}
153+
154+
/** Gets the issue management URL. */
155+
public String getIssueManagementURL() {
156+
return cdata("//project/issueManagement/url");
157+
}
158+
159+
/** Gets the CI management system. */
160+
public String getCIManagementSystem() {
161+
return cdata("//project/ciManagement/system");
162+
}
163+
164+
/** Gets the CI management URL. */
165+
public String getCIManagementURL() {
166+
return cdata("//project/ciManagement/url");
167+
}
168+
129169
// -- Comparable methods --
130170

131171
@Override

0 commit comments

Comments
 (0)