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 101632c967
commit d99f0575f4
2 changed files with 18 additions and 0 deletions
@@ -94,4 +94,9 @@ public class LibraryHelper {
}
}
}
public static boolean isRunningFromJar() {
String classPath = LibraryHelper.class.getResource("LibraryHelper.class").toString();
return classPath.startsWith("jar:");
}
}