mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-15 08:13:43 +01:00
bug fixes for issue #49
Former-commit-id: 967dc082c8a38a786d97c584d1d76c83c66f58b2
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