mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-14 15:53:36 +01:00
bug fixes for issue #49
Former-commit-id: a5c7236f6d1663dc3004161d6e9e1d68a7bc6f06
This commit is contained in:
@@ -50,7 +50,7 @@ public final class DriverLoader {
|
||||
* @throws DriverLoadException thrown if the driver cannot be loaded
|
||||
*/
|
||||
public static void load(String className) throws DriverLoadException {
|
||||
final ClassLoader loader = ClassLoader.getSystemClassLoader();
|
||||
final ClassLoader loader = DriverLoader.class.getClassLoader(); //ClassLoader.getSystemClassLoader();
|
||||
load(className, loader);
|
||||
}
|
||||
|
||||
|
||||
@@ -284,8 +284,7 @@ public final class Settings {
|
||||
Logger.getLogger(Settings.class.getName()).log(Level.FINE, "Settings.getDataFile() - transforming filename");
|
||||
final File jarPath = getJarPath();
|
||||
Logger.getLogger(Settings.class.getName()).log(Level.FINE, String.format("Settings.getDataFile() - jar file: '%s'", jarPath.toString()));
|
||||
final File newBase = new File(jarPath, file.substring(6));
|
||||
File retVal = new File(newBase, file);
|
||||
final File retVal = new File(jarPath, file.substring(6));
|
||||
Logger.getLogger(Settings.class.getName()).log(Level.FINE, String.format("Settings.getDataFile() - returning: '%s'", retVal.toString()));
|
||||
return retVal;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user