Skip to content

Commit

Permalink
Merge pull request #1707 from ndw/build-fix-xslt
Browse files Browse the repository at this point in the history
Fix bug in build dependencies
  • Loading branch information
ndw authored Jan 17, 2025
2 parents e10bd9c + b821819 commit 0881c07
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -763,12 +763,28 @@ task xslt_resources(
}
}

task xslt_xml(
dependsOn: ["xslt_merge_catalog", "saxon_config"],
description: "Create the XML version of the specification"
) {
inputs.file "${projectDir}/style/identity.xsl"
inputs.file xslt_merge_catalog.outputs.getFiles().getSingleFile()
outputs.file "${buildDir}/www/xslt-40/xslt-40.xml"

doLast {
transform("${xslt_merge_catalog.outputs.getFiles().getSingleFile().toString()}",
"${projectDir}/style/identity.xsl",
"${xslt_xml.outputs.getFiles().getSingleFile()}")
}
}

task xslt_html(
dependsOn: ["xslt_merge_catalog", "xslt_resources", "setup_crossref_indexes", "saxon_config"],
dependsOn: ["xslt_merge_catalog", "xslt_resources", "setup_crossref_indexes", "saxon_config", "xslt_xml"],
description: "Create the HTML version of the specification"
) {
outputs.file("${buildDir}/www/xslt-40/Overview.html")
inputs.dir("${projectDir}/specifications/xslt-40/style")
inputs.file xslt_xml.outputs.getFiles().getSingleFile()

doLast {
transform("${xslt_merge_catalog.outputs.getFiles().getSingleFile().toString()}",
Expand Down Expand Up @@ -824,21 +840,6 @@ task xslt_html_diff(
}
}

task xslt_xml(
dependsOn: ["xslt_merge_catalog", "saxon_config"],
description: "Create the XML version of the specification"
) {
inputs.file "${projectDir}/style/identity.xsl"
inputs.file xslt_merge_catalog.outputs.getFiles().getSingleFile()
outputs.file "${buildDir}/www/xslt-40/xslt-40.xml"

doLast {
transform("${xslt_merge_catalog.outputs.getFiles().getSingleFile().toString()}",
"${projectDir}/style/identity.xsl",
"${xslt_xml.outputs.getFiles().getSingleFile()}")
}
}

// ============================================================

task xpath_40(
Expand Down

0 comments on commit 0881c07

Please sign in to comment.