Skip to content

Commit

Permalink
Merge pull request #338 from msgilligan/msgilligan-rename-output
Browse files Browse the repository at this point in the history
Rename output from README.* to Omni-Specification.*
  • Loading branch information
achamely authored Oct 30, 2019
2 parents 37a818c + 21f27ce commit 61b1647
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,28 @@ repositories {
jcenter()
}

def buildDocDir = file('build/doc')

asciidoctor {
sourceDir file("$projectDir")
sources {
include 'README.adoc'
}
outputDir file('build/doc')
outputDir buildDocDir
doLast {
file("${outputDir}/README.html").renameTo("${outputDir}/Omni-Specification.html")
}
}

asciidoctorPdf {
sourceDir file("$projectDir")
sources {
include 'README.adoc'
}
outputDir file('build/doc')
outputDir buildDocDir
doLast {
file("${outputDir}/README.pdf").renameTo("${outputDir}/Omni-Specification.pdf")
}
}

task renderOmniSpecification(dependsOn: [asciidoctor, asciidoctorPdf])

0 comments on commit 61b1647

Please sign in to comment.