Log to a file if running from a JAR

This commit is contained in:
Cameron Gutman
2014-01-01 15:33:48 -06:00
parent 40524a0c76
commit 0ac3dd6adb
2 changed files with 18 additions and 0 deletions

View File

@@ -94,4 +94,9 @@ public class LibraryHelper {
}
}
}
public static boolean isRunningFromJar() {
String classPath = LibraryHelper.class.getResource("LibraryHelper.class").toString();
return classPath.startsWith("jar:");
}
}