GP-6385: Some more gradle tweaks

This commit is contained in:
Ryan Kurtz
2026-01-30 11:07:46 -05:00
parent d160f22f09
commit 675be71ebb
8 changed files with 43 additions and 40 deletions

View File

@@ -551,18 +551,16 @@ task assembleMarkdownToHtml (type: Copy) {
outputs.upToDateWhen {false}
destinationDir = file(DISTRIBUTION_DIR.getPath() + "/" + ZIP_DIR_PREFIX)
doLast {
eachFile { f ->
def htmlName = f.sourceName[0..-3] + "html"
def htmlPath = f.relativePath.replaceLastName(htmlName).pathString
[
'java',
'-cp', project.files(rootProject.ext.mdDeps).asPath,
'ghidra.markdown.MarkdownToHtml',
f.file,
file("${destinationDir.path}/${htmlPath}")
].execute()
}
eachFile { f ->
def htmlName = f.sourceName[0..-3] + "html"
def htmlPath = f.relativePath.replaceLastName(htmlName).pathString
providers.javaexec {
classpath = rootProject.files(rootProject.ext.markdownDeps)
mainClass = 'ghidra.markdown.MarkdownToHtml'
args f.file
args file("${destinationDir.path}/${htmlPath}")
}.result.get()
}
}