Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move join-json into the step library #179

Merged
merged 1 commit into from
Jul 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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