HHH-6903 - add building of hem and manual docs

This commit is contained in:
Steve Ebersole 2011-12-16 09:12:45 -06:00
parent a0b2a4b3c9
commit d02864bac6
3 changed files with 38 additions and 4 deletions

View File

@ -39,10 +39,10 @@ jdocbook {
masterSourceDocumentName = 'Hibernate_Development_Guide.xml'
}
// todo : need to remove this once all content moved to devguide
// manual {
// masterSourceDocumentName = 'HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.xml'
manual {
masterSourceDocumentName = 'HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.xml'
// translation = ['de-DE','es-ES','fr-FR','ja-JP','pt-BR','zh-CN']
// }
}
}
task buildTutorialZip(type: Zip) {

View File

@ -1,5 +1,35 @@
import org.apache.tools.ant.filters.ReplaceTokens
apply plugin: "jdocbook"
buildscript {
repositories {
mavenCentral()
mavenLocal()
mavenRepo name: "jboss", urls: "http://repository.jboss.org/nexus/content/groups/public/"
}
dependencies {
classpath 'org.jboss.jdocbook:gradle-jdocbook:1.1.0'
}
}
dependencies {
jdocbookStyles "org.hibernate:hibernate-jdocbook-style:2.0.1"
}
jdocbook {
format('html_single') {
finalName = "index.html"
stylesheet = "classpath:/xslt/org/hibernate/jdocbook/xslt/xhtml-single.xsl"
}
format('html') {
finalName = "index.html"
stylesheet = "classpath:/xslt/org/hibernate/jdocbook/xslt/xhtml.xsl"
}
masterSourceDocumentName="master.xml"
masterLanguage="en"
}
apply plugin: 'java'
apply plugin: org.hibernate.gradle.testing.matrix.MatrixTestingPlugin

View File

@ -104,7 +104,7 @@ aggregateJavadocs.doLast {
// release bundles ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
releaseBuildDir = dir( buildDirName )
task prepareReleaseBundles( dependsOn: [parent.project( 'documentation' ).tasks.buildDocs,aggregateJavadocs] )
task prepareReleaseBundles( dependsOn: [parent.project( 'documentation' ).tasks.buildDocs,parent.project('hibernate-entitymanager' ).tasks.buildDocs,aggregateJavadocs] )
releaseCopySpec = copySpec {
@ -160,6 +160,10 @@ releaseCopySpec = copySpec {
from new File( parent.project( 'documentation' ).buildDir, 'docbook/publish' )
}
into('documentation/hem') {
from new File( parent.project( 'hibernate-entitymanager' ).buildDir, 'docbook/publish' )
}
into('documentation/javadocs') {
from javadocBuildDir.dir
}