mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-22 04:05:39 +00:00
getLogFileUrl no longer searches user.dir for log4j properties file GT-2834
This commit is contained in:
parent
cfc51a00ea
commit
ecdf92eb05
@ -121,22 +121,17 @@ def createDir(dirPath) {
|
||||
}
|
||||
|
||||
/*********************************************************************************
|
||||
* Finds the log4j properties file and returns its path.
|
||||
* Retrieves log4j properties file and returns its path.
|
||||
*********************************************************************************/
|
||||
def getLogFileUrl() {
|
||||
String rootDir = System.properties.get("user.dir")
|
||||
String foundFile
|
||||
new File(rootDir).eachFileRecurse(groovy.io.FileType.FILES) {
|
||||
if (it.path.endsWith('src/main/resources/generic.log4jtest.xml')) {
|
||||
foundFile = "file:" + it.path.toString()
|
||||
return "file:" + it.path.toString()
|
||||
}
|
||||
String logFilePath = "$rootDir/Ghidra/Framework/Generic/src/main/resources/generic.log4jtest.xml"
|
||||
File logFile = new File(logFilePath)
|
||||
if (logFile.exists()) {
|
||||
return logFile.toURI().toString()
|
||||
}
|
||||
|
||||
return foundFile
|
||||
throw new GradleException("Cannot find log4j properties file using path '$logFilePath'")
|
||||
}
|
||||
|
||||
|
||||
/*********************************************************************************
|
||||
* Creates a new debug port randomly.
|
||||
*********************************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user