mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-21 08:39:24 +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
|
* @throws DriverLoadException thrown if the driver cannot be loaded
|
||||||
*/
|
*/
|
||||||
public static void load(String className) throws DriverLoadException {
|
public static void load(String className) throws DriverLoadException {
|
||||||
final ClassLoader loader = ClassLoader.getSystemClassLoader();
|
final ClassLoader loader = DriverLoader.class.getClassLoader(); //ClassLoader.getSystemClassLoader();
|
||||||
load(className, loader);
|
load(className, loader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -284,8 +284,7 @@ public final class Settings {
|
|||||||
Logger.getLogger(Settings.class.getName()).log(Level.FINE, "Settings.getDataFile() - transforming filename");
|
Logger.getLogger(Settings.class.getName()).log(Level.FINE, "Settings.getDataFile() - transforming filename");
|
||||||
final File jarPath = getJarPath();
|
final File jarPath = getJarPath();
|
||||||
Logger.getLogger(Settings.class.getName()).log(Level.FINE, String.format("Settings.getDataFile() - jar file: '%s'", jarPath.toString()));
|
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));
|
final File retVal = new File(jarPath, file.substring(6));
|
||||||
File retVal = new File(newBase, file);
|
|
||||||
Logger.getLogger(Settings.class.getName()).log(Level.FINE, String.format("Settings.getDataFile() - returning: '%s'", retVal.toString()));
|
Logger.getLogger(Settings.class.getName()).log(Level.FINE, String.format("Settings.getDataFile() - returning: '%s'", retVal.toString()));
|
||||||
return retVal;
|
return retVal;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user