mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-19 16:40:38 -09:00
GP-4562: once more more...
GP-4562: once more... GP-4562: once more... GP-4562: test error GP-4562: post-review pt4 GP-4562: post-review pt3 GP-4562: post-review pt2 GP-4562: post-review pt1 GP-4562: warnings (Win) GP-4562: warnings GP-4562: windows warning GP-4562: notes GP-4562: notes GP-4562: rearranged slightly GP-4562: clean-up GP-4562: powershell adds GP-4562: powershell adds GP-4562: added task GP-4562: oops GP-4562: buildXml GP-4562: moving stuff GP-4562: re-generating GP-4562: gdb (passes tests) GP-4562: first pass GP4562: xsltGP-4562: rearrangeGP-4562: breaking things downGP-4562: basics in placeGP-4562: oops
This commit is contained in:
@@ -124,3 +124,34 @@ ext.distributePyDep = { name ->
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// This task composes debugger schema files from their subpieces
|
||||
|
||||
def foundFiles = fileTree("src/main/py/src").matching {
|
||||
include "**/build_xml.py"
|
||||
}
|
||||
|
||||
task buildXmlSchema {
|
||||
doLast {
|
||||
if (rootProject.PYTHON3 == null) {
|
||||
throw new GradleException("A supported version of Python [${PYTHON_SUPPORTED}] was not found!")
|
||||
}
|
||||
|
||||
File buildScript = foundFiles.isEmpty() ? null : foundFiles.singleFile
|
||||
if (buildScript == null || !buildScript.exists()) {
|
||||
println "Warning: Could not find build_xml.py for ${project.name}"
|
||||
return
|
||||
}
|
||||
|
||||
def exec = providers.exec {
|
||||
workingDir { buildScript.parentFile }
|
||||
ignoreExitValue = true
|
||||
commandLine rootProject.PYTHON3
|
||||
args "build_xml.py"
|
||||
}
|
||||
if (exec.result.get().exitValue != 0) {
|
||||
throw new GradleException(exec.standardError.asText.get().strip())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user