Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 3rd, 2011  |  syntax: Java  |  size: 1.18 KB  |  views: 48  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. /**
  2.  * script with mutil-books support
  3.  */
  4.  
  5. jdocbook {
  6.         translations = ['zh-CN']
  7.        
  8.         format('html_single') {
  9.                 finalName = "index.html"
  10.                 stylesheet = "classpath:/xslt/org/hibernate/jdocbook/xslt/xhtml-single.xsl"
  11.         }
  12.        
  13.         format('html') {
  14.                 finalName = "index.html"
  15.                 stylesheet = "classpath:/xslt/org/hibernate/jdocbook/xslt/xhtml.xsl"
  16.         }
  17.  
  18.         manual {
  19.                 //baseDirectory = baseDir + 'hibernate-manual' // CoC, scriptsdefault baseDirectory is baseDir+bookName
  20.                 masterSourceDocumentName = 'HIBERNATE_-_Relational_Persistence_for_Idiomatic_Java.xml'
  21.                 format {
  22.                         name = "pdf"
  23.                         finalName = "hibernate_reference.pdf"
  24.                         stylesheet = "classpath:/xslt/org/hibernate/jdocbook/xslt/pdf.xsl"
  25.                 } //add pdf format for this book
  26.         }
  27.        
  28.         devguide {
  29.                 masterSourceDocumentName = 'Hibernate_Developer_Guide.xml'
  30.                 formats.html_single.finalName = 'hibernate.html' //override the finalName defined in the share configuration
  31.                 translations = [] //disable translation for this book
  32.         }
  33.        
  34.         quickstart {
  35.                 masterSourceDocumentName = 'Hibernate_Getting_Started_Guide.xml'
  36.                 formats.html.enable = false //disable html format
  37.                 translations = ['zh-CN', 'de-DE'] //override translations info
  38.         }
  39. }
clone this paste RAW Paste Data