mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
GP-3555 - fixed gradle build for extensions that do not have help
This commit is contained in:
parent
9d7809902d
commit
f199a93352
1 changed files with 15 additions and 7 deletions
|
@ -310,7 +310,7 @@ tasks.register('indexHelp', JavaExec) {
|
|||
File helpRootDir = file('src/main/help/help')
|
||||
File outputFile = file("build/help/main/help/${project.name}_JavaHelpSearch")
|
||||
|
||||
inputs.dir helpRootDir
|
||||
inputs.dir helpRootDir skipWhenEmpty()
|
||||
outputs.dir outputFile
|
||||
|
||||
classpath = sourceSets.main.runtimeClasspath
|
||||
|
@ -363,13 +363,21 @@ tasks.register('buildHelp', JavaExec) {
|
|||
File helpRootDir = file('src/main/help/help')
|
||||
File outputDir = file('build/help/main/help')
|
||||
|
||||
inputs.dir helpRootDir
|
||||
onlyIf {
|
||||
helpRootDir.exists()
|
||||
}
|
||||
|
||||
if (helpRootDir.exists()) {
|
||||
inputs.dir helpRootDir
|
||||
|
||||
inputs.files({
|
||||
// Note: this must be done lazily in a closure since the classpath is not ready at
|
||||
// configuration time.
|
||||
return getHelpInputs(sourceSets.main.runtimeClasspath.files)
|
||||
})
|
||||
inputs.files({
|
||||
// Note: this must be done lazily in a closure since the classpath is not ready at
|
||||
// configuration time.
|
||||
return getHelpInputs(sourceSets.main.runtimeClasspath.files)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
outputs.dir outputDir
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue