MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / getRunningJar

Method getRunningJar

Utils/src/eu/the5zig/util/Utils.java:143–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141 }
142
143 public static File getRunningJar() {
144 try {
145 return new File(Utils.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath());
146 } catch (Exception e) {
147 return null;
148 }
149 }
150
151 public static String convertStreamToString(InputStream is) throws IOException {
152 return new BufferedReader(new InputStreamReader(is)).readLine();

Callers 2

FrameMethod · 0.95
InstallerNewMethod · 0.95

Calls 1

getLocationMethod · 0.45

Tested by

no test coverage detected