mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-23 09:31:32 +01:00
changed logging level on one delete temp file log entry
Former-commit-id: 2f73b9a97a641bb86b73db76dc82d5e84cde9e17
This commit is contained in:
@@ -78,7 +78,7 @@ public final class FileUtils {
|
|||||||
boolean success = true;
|
boolean success = true;
|
||||||
if (!org.apache.commons.io.FileUtils.deleteQuietly(file)) {
|
if (!org.apache.commons.io.FileUtils.deleteQuietly(file)) {
|
||||||
success = false;
|
success = false;
|
||||||
LOGGER.info("Failed to delete file: {}; attempting to delete on exit.", file.getPath());
|
LOGGER.debug("Failed to delete file: {}; attempting to delete on exit.", file.getPath());
|
||||||
file.deleteOnExit();
|
file.deleteOnExit();
|
||||||
}
|
}
|
||||||
return success;
|
return success;
|
||||||
@@ -103,16 +103,16 @@ public final class FileUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the data directory. If a path was specified in dependencycheck.properties or was specified using the
|
* Returns the data directory. If a path was specified in dependencycheck.properties or was specified using the Settings
|
||||||
* Settings object, and the path exists, that path will be returned as a File object. If it does not exist, then a
|
* object, and the path exists, that path will be returned as a File object. If it does not exist, then a File object will be
|
||||||
* File object will be created based on the file location of the JAR containing the specified class.
|
* created based on the file location of the JAR containing the specified class.
|
||||||
*
|
*
|
||||||
* @param configuredFilePath the configured relative or absolute path
|
* @param configuredFilePath the configured relative or absolute path
|
||||||
* @param clazz the class to resolve the path
|
* @param clazz the class to resolve the path
|
||||||
* @return a File object
|
* @return a File object
|
||||||
* @throws IOException is thrown if the path could not be decoded
|
* @throws IOException is thrown if the path could not be decoded
|
||||||
* @deprecated This method should no longer be used. See the implementation in dependency-check-cli/App.java to see
|
* @deprecated This method should no longer be used. See the implementation in dependency-check-cli/App.java to see how the
|
||||||
* how the data directory should be set.
|
* data directory should be set.
|
||||||
*/
|
*/
|
||||||
@java.lang.Deprecated
|
@java.lang.Deprecated
|
||||||
public static File getDataDirectory(String configuredFilePath, Class clazz) throws IOException {
|
public static File getDataDirectory(String configuredFilePath, Class clazz) throws IOException {
|
||||||
@@ -126,8 +126,8 @@ public final class FileUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves the physical path to the parent directory containing the provided class. For example, if a JAR file
|
* Retrieves the physical path to the parent directory containing the provided class. For example, if a JAR file contained a
|
||||||
* contained a class org.something.clazz this method would return the parent directory of the JAR file.
|
* class org.something.clazz this method would return the parent directory of the JAR file.
|
||||||
*
|
*
|
||||||
* @param clazz the class to determine the parent directory of
|
* @param clazz the class to determine the parent directory of
|
||||||
* @return the parent directory of the file containing the specified class.
|
* @return the parent directory of the file containing the specified class.
|
||||||
|
|||||||
Reference in New Issue
Block a user