Skip to content

Commit

Permalink
Merge pull request #179 from ndw/move-json
Browse files Browse the repository at this point in the history
Move join-json into the step library
  • Loading branch information
ndw authored Jul 29, 2019
2 parents a318c7a + 5acf40d commit a672249
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 332 deletions.
54 changes: 1 addition & 53 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ task make_etc() {
}

[ "steps", "step-file", "step-os", "step-paged-media",
"step-run", "step-text", "step-validation", "step-json" ].each { spec ->
"step-run", "step-text", "step-validation" ].each { spec ->
Task t = task "copy_${spec}_build"(dependsOn: [ "buildspecs" ], type: Copy) {
from "$spec/build/"
exclude "xinclude.xml", "examples/**", "graphics/**", "glossary.xml"
Expand Down Expand Up @@ -325,58 +325,6 @@ task step_os_xpl(dependsOn: ["step-os:library"], type: Copy) {
rename ("library.xml", "steps.xpl")
}

// ======================================================================
// step-json

task step_json(type: DocBookTask,
dependsOn: [ "download_xproc_toc",
"steps", "xproc_schemas", "spec_schemas",
"step-json:specification",
"step_json_assets",
"step_json_src", "step_json_xpl" ]) {
inputs.files fileTree(dir: "tools/xsl/")
inputs.files fileTree(dir: "tools/xpl/")
inputs.file "build/xproc_toc.xml"
input("source", "step-json/build/source.xml")
output("result", "build/dist/json/index.html")

param("schemaext.schema", file("build/schema/dbspec.rng"))
param("travis", getenv("TRAVIS"))
param("travis-commit", getenv("TRAVIS_COMMIT"))
param("travis-build-number", getenv("TRAVIS_BUILD_NUMBER"))
param("travis-user", getenv("TRAVIS_USER"))
param("travis-repo", getenv("TRAVIS_REPO"))
param("travis-branch", getenv("TRAVIS_BRANCH"))
param("travis-tag", getenv("TRAVIS_TAG"))

option("style", file("tools/xsl/xproc-specs.xsl"))
option("diff", deltaxml())
option("specid", "json")
//option("diffloc", file("build/dist/json/diff.html"))

pipeline "tools/xpl/formatspec.xpl"
}
buildspecs.dependsOn "step_json"

task step_json_assets(type: Copy) {
from "src/main/resources"
into "build/dist/json/"
}

task step_json_src(dependsOn: ["step-json:source"], type: Copy) {
from "step-json/build/"
into "build/dist/json/"
include "source.xml"
rename ("source.xml", "specification.xml")
}

task step_json_xpl(dependsOn: ["step-json:library"], type: Copy) {
from "step-json/build/"
into "build/dist/json/"
include "library.xml"
rename ("library.xml", "steps.xpl")
}

// ======================================================================
// step-run

Expand Down
98 changes: 0 additions & 98 deletions step-json/build.gradle

This file was deleted.

21 changes: 0 additions & 21 deletions step-json/src/main/xml/ancillary.xml

This file was deleted.

42 changes: 0 additions & 42 deletions step-json/src/main/xml/conformance.xml

This file was deleted.

118 changes: 0 additions & 118 deletions step-json/src/main/xml/specification.xml

This file was deleted.

1 change: 1 addition & 0 deletions steps/src/main/xml/specification.xml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ linkend="rfc2119"/>.</para>
<xi:include href="steps/insert.xml"/>
<xi:include href="steps/label-elements.xml"/>
<xi:include href="steps/load.xml"/>
<xi:include href="steps/json-join.xml"/>
<xi:include href="steps/make-absolute-uris.xml"/>
<xi:include href="steps/namespace-rename.xml"/>
<xi:include href="steps/pack.xml"/>
Expand Down
File renamed without changes.

0 comments on commit a672249

Please sign in to comment.