MCPcopy Create free account
hub / github.com/0opslab/opslabJutil / resourcePath

Method resourcePath

src/main/java/com/opslab/util/ConfigUtil.java:45–48  ·  view source on GitHub ↗

@param path @return

(final String path)

Source from the content-addressed store, hash-verified

43 * @return
44 */
45 public static String resourcePath(final String path) {
46 URL asResource = findAsResource(path);
47 return new File(asResource.getFile()).getPath();
48 }
49
50
51 private static InputStream getConfigStream(final String path) throws RuntimeException {

Callers 1

testResourcePathMethod · 0.95

Calls 2

findAsResourceMethod · 0.95
getFileMethod · 0.80

Tested by 1

testResourcePathMethod · 0.76