Skip to content

Commit 6e97ae0

Browse files
committed
Add POM.getPOM(Class) without G/A arguments
1 parent b7ffa9b commit 6e97ae0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,17 @@ public String getVersion() {
216216

217217
// -- Utility methods --
218218

219+
/**
220+
* Gets the Maven POM associated with the given class.
221+
*
222+
* @param c The class to use as a base when searching for a pom.xml.
223+
* @return {@link POM} object representing the discovered POM, or null if no
224+
* POM could be found.
225+
*/
226+
public static POM getPOM(final Class<?> c) {
227+
return getPOM(c, null, null);
228+
}
229+
219230
/**
220231
* Gets the Maven POM associated with the given class.
221232
*

0 commit comments

Comments
 (0)