mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-13 23:33:37 +01:00
removed file
Former-commit-id: 9b459e06b23b233984a5b633eb7faed3a8b91c26
This commit is contained in:
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.owasp.dependencycheck.data.nvdcve;
|
||||
|
||||
import java.io.File;
|
||||
import java.net.URL;
|
||||
import java.net.URLClassLoader;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jeremy Long (jeremy.long@owasp.org)
|
||||
*/
|
||||
public class DriverClassLoader extends URLClassLoader {
|
||||
|
||||
/**
|
||||
* Constructs a new DriverClassLoader that performs a deep copy of the URLs
|
||||
* in the provided class loader.
|
||||
*
|
||||
*/
|
||||
public DriverClassLoader(File pathToDriver, ClassLoader parent) {
|
||||
File driverFolder = new File("driver");
|
||||
File[] files = driverFolder.listFiles();
|
||||
for (File file : files) {
|
||||
try {
|
||||
loader.addURL(file.toURI().toURL());
|
||||
} catch (MalformedURLException e) {
|
||||
}
|
||||
}
|
||||
|
||||
super(urls, parent);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add additional URLs to the class loader.
|
||||
*
|
||||
* @param url the URL to add to the class loader
|
||||
*/
|
||||
@Override
|
||||
public void addURL(URL url) {
|
||||
super.addURL(url);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user