Skip to content

Commit 11c2b95

Browse files
author
Jeremy Jeanne
committed
Restore doLast block for htmlhelp task
Fix accidental removal during refactoring. This block moves .chm files from htmlhelp/ subdirectory to output root and cleans up."
1 parent 9bf00a6 commit 11c2b95

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

build.gradle

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
}
99

1010
plugins {
11-
id 'io.github.jyjeanne.dita-ot-gradle' version '2.8.1'
11+
id 'io.github.jyjeanne.dita-ot-gradle' version '2.8.2'
1212
// Removed: 'com.github.eerohele.saxon-gradle' - not Configuration Cache compatible
1313
// Replaced with: inline XsltTransformTask class below
1414
}
@@ -236,6 +236,20 @@ task htmlhelp(type: DitaOtTask, dependsOn: autoGenerate) {
236236
ditaProperties.put('args.csspath', 'css')
237237
ditaProperties.put('args.cssroot', "${projectDirPath}/resources/")
238238
ditaProperties.put('args.gen.task.lbl', 'YES')
239+
240+
doLast {
241+
// Move .chm files using modern Gradle file operations
242+
def htmlhelpDir = file("${outputDir}/htmlhelp")
243+
if (htmlhelpDir.exists()) {
244+
copy {
245+
from htmlhelpDir
246+
into outputDir
247+
include '*.chm'
248+
}
249+
// Clean up the htmlhelp directory
250+
delete htmlhelpDir
251+
}
252+
}
239253
}
240254

241255
task cleanOutput(type: Delete) {

0 commit comments

Comments
 (0)