事始
1周遅れだけども、忘却のかなたへ行かれる前にフォローアップをしていこうと思う。
まずは環境。こちらは会社のお仕事マシンなのでXPのSP3。Java環境は
C:\DITA-OT1.4.2.1>java -version java version "1.6.0_07" Java(TM) SE Runtime Environment (build 1.6.0_07-b06) Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
となっている。関連でDockBookの構築でxalanのバイナリなどもインストールしているが今回はDITA-OT1.4.2.1_full_easy_install_binを使ってみることにする。
DITA-OTでのインストール
ZIP形式になっているので、展開してC:\DITA-OT1.4.2.1に置く。
サンプルのビルドをしてみる。内容はid:monamour555をトレース
C:\DITA-OT1.4.2.1>ant -f build_demo.xml Unable to locate tools.jar. Expected to find it in C:\Program Files\ARM\Java\JRE \150\02\win_32-pentium\jre1.5.0_02\lib\tools.jar Buildfile: build_demo.xml
こんな感じではじまって、
[input] The DITA map filename: C:\DITA-OT1.4.2.1\samples\hierarchy.ditamap
とditamapを指定してみる。
[input] The output directory (out): out
outと入力するとホームディレクトリにoutディレクトリが作成された。
[input] The output type: (eclipse,htmlhelp,javahelp,pdf,web,docbook) pdf
pdfを出力してみる。
[input] Continue? (Y,y,N,n) y
yを入力すると開始される。
いろいろログが出るがノーエラーでファイルが作成されました。
foやらSaxon 6.5.5をインストールしなきゃだめなのかもしれないけど、外に出した人からはそんな報告をうけていないので。うーん。環境の違いがあるのかもしれないけど、ここは悩まないことにする。
とりあえずサンプルのログを以下に書いておくので参考までに。
Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\DITA-OT1.4.2.1>ant -f build_demo.xml Unable to locate tools.jar. Expected to find it in C:\Program Files\ARM\Java\JRE\150\02\win_32-pentium\jre1.5.0_02\lib\tools.jar Buildfile: build_demo.xml prompt.init: prompt: [echo] Please enter the filename for the DITA map that you [echo] want to build including the directory path (if any). [echo] The filename must have the .ditamap extension. [echo] Note that relative paths that climb (..) are not supported yet. [echo] To build the sample, press return without entering anything. [input] The DITA map filename: C:\DITA-OT1.4.2.1\samples\hierarchy.ditamap [echo] [echo] Please enter the name of the output directory or press return [echo] to accept the default. [input] The output directory (out): out [echo] [echo] Please enter the type of output to generate. [echo] Options include: eclipse, htmlhelp, javahelp, pdf, or web [echo] Use lowercase letters. [echo] [input] The output type: (eclipse,htmlhelp,javahelp,pdf,web,docbook) pdf [echo] [echo] Ready to build C:\DITA-OT1.4.2.1\samples\hierarchy.ditamap [echo] for pdf in out [echo] [input] Continue? (Y,y,N,n) y use.init: init: [mkdir] Created dir: C:\DITA-OT1.4.2.1\temp [mkdir] Created dir: C:\DITA-OT1.4.2.1\out prompt.output.init: prompt.output.eclipse: prompt.output.javahelp: prompt.output.htmlhelp: prompt.output.pdf: start-process: init-logger: use-init.envhhcdir: use-init.hhcdir: use-init: check-arg: [echo] ***************************************************************** [echo] * basedir = C:\DITA-OT1.4.2.1 [echo] * dita.dir = C:\DITA-OT1.4.2.1 [echo] * input = C:\DITA-OT1.4.2.1\samples\hierarchy.ditamap [echo] * transtype = pdf [echo] * tempdir = temp [echo] * outputdir = out [echo] * extname = .xml [echo] * clean.temp = true [echo] * xslt.parser = XALAN [echo] ***************************************************************** output-deprecated-msg: output-css-warn-message: output-msg: build-init: start-preprocess: clean-temp: gen-list-without-flagging: [pipeline] Using XERCES. gen-list-with-flagging: gen-list: debug: debug-and-filter: debug-filter: copy-image: [copy] Copying 1 file to C:\DITA-OT1.4.2.1\out copy-html: copy-flag: copy-subsidiary: copy-generated-files: [copy] Copying 2 files to C:\DITA-OT1.4.2.1\out copy-files: conref: move-meta-entries: mapref: [xslt] Transforming into C:\DITA-OT1.4.2.1\temp [xslt] Processing C:\DITA-OT1.4.2.1\temp\hierarchy.ditamap to C:\DITA-OT1.4.2.1\temp\hierarchy.ditamap.ref [xslt] Loading stylesheet C:\DITA-OT1.4.2.1\xsl\preprocess\mapref.xsl [move] Moving 1 file to C:\DITA-OT1.4.2.1\temp mappull: [xslt] Transforming into C:\DITA-OT1.4.2.1\temp [xslt] Processing C:\DITA-OT1.4.2.1\temp\hierarchy.ditamap to C:\DITA-OT1.4.2.1\temp\hierarchy.ditamap.pull [xslt] Loading stylesheet C:\DITA-OT1.4.2.1\xsl\preprocess\mappull.xsl [move] Moving 1 file to C:\DITA-OT1.4.2.1\temp chunk: maplink: [xslt] Processing C:\DITA-OT1.4.2.1\temp\hierarchy.ditamap to C:\DITA-OT1.4.2.1\temp\maplinks.unordered [xslt] Loading stylesheet C:\DITA-OT1.4.2.1\xsl\preprocess\maplink.xsl move-links: topicpull: [xslt] Transforming into C:\DITA-OT1.4.2.1\temp [xslt] Processing C:\DITA-OT1.4.2.1\temp\concepts\garageconceptsoverview.xml to C:\DITA-OT1.4.2.1\temp\concepts\garageconceptsoverview.xml.pull [xslt] Loading stylesheet C:\DITA-OT1.4.2.1\xsl\preprocess\topicpull.xsl [xslt] Processing C:\DITA-OT1.4.2.1\temp\concepts\lawnmower.xml to C:\DITA-OT1.4.2.1\temp\concepts\lawnmower.xml.pull [xslt] Processing C:\DITA-OT1.4.2.1\temp\concepts\oil.xml to C:\DITA-OT1.4.2.1\temp\concepts\oil.xml.pull [xslt] Processing C:\DITA-OT1.4.2.1\temp\concepts\paint.xml to C:\DITA-OT1.4.2.1\temp\concepts\paint.xml.pull [xslt] Processing C:\DITA-OT1.4.2.1\temp\concepts\shelving.xml to C:\DITA-OT1.4.2.1\temp\concepts\shelving.xml.pull [xslt] Processing C:\DITA-OT1.4.2.1\temp\concepts\snowshovel.xml to C:\DITA-OT1.4.2.1\temp\concepts\snowshovel.xml.pull [xslt] Processing C:\DITA-OT1.4.2.1\temp\concepts\toolbox.xml to C:\DITA-OT1.4.2.1\temp\concepts\toolbox.xml.pull [xslt] Processing C:\DITA-OT1.4.2.1\temp\concepts\tools.xml to C:\DITA-OT1.4.2.1\temp\concepts\tools.xml.pull [xslt] Processing C:\DITA-OT1.4.2.1\temp\concepts\waterhose.xml to C:\DITA-OT1.4.2.1\temp\concepts\waterhose.xml.pull [xslt] Processing C:\DITA-OT1.4.2.1\temp\concepts\wheelbarrow.xml to C:\DITA-OT1.4.2.1\temp\concepts\wheelbarrow.xml.pull [xslt] Processing C:\DITA-OT1.4.2.1\temp\concepts\workbench.xml to C:\DITA-OT1.4.2.1\temp\concepts\workbench.xml.pull [xslt] Processing C:\DITA-OT1.4.2.1\temp\concepts\wwfluid.xml to C:\DITA-OT1.4.2.1\temp\concepts\wwfluid.xml.pull [xslt] Processing C:\DITA-OT1.4.2.1\temp\tasks\changingtheoil.xml to C:\DITA-OT1.4.2.1\temp\tasks\changingtheoil.xml.pull [xslt] Processing C:\DITA-OT1.4.2.1\temp\tasks\garagetaskoverview.xml to C:\DITA-OT1.4.2.1\temp\tasks\garagetaskoverview.xml.pull [xslt] Processing C:\DITA-OT1.4.2.1\temp\tasks\organizing.xml to C:\DITA-OT1.4.2.1\temp\tasks\organizing.xml.pull [xslt] Processing C:\DITA-OT1.4.2.1\temp\tasks\shovellingsnow.xml to C:\DITA-OT1.4.2.1\temp\tasks\shovellingsnow.xml.pull [xslt] Processing C:\DITA-OT1.4.2.1\temp\tasks\spraypainting.xml to C:\DITA-OT1.4.2.1\temp\tasks\spraypainting.xml.pull [xslt] Processing C:\DITA-OT1.4.2.1\temp\tasks\takinggarbage.xml to C:\DITA-OT1.4.2.1\temp\tasks\takinggarbage.xml.pull [xslt] Processing C:\DITA-OT1.4.2.1\temp\tasks\washingthecar.xml to C:\DITA-OT1.4.2.1\temp\tasks\washingthecar.xml.pull [move] Moving 19 files to C:\DITA-OT1.4.2.1\temp preprocess: map2pdf: dita.map.fo: [xslt] Processing C:\DITA-OT1.4.2.1\temp\hierarchy.ditamap to C:\DITA-OT1.4.2.1\temp\hierarchy_MERGED.xml [xslt] Loading stylesheet C:\DITA-OT1.4.2.1\xsl\topicmerge.xsl [xslt] Processing C:\DITA-OT1.4.2.1\temp\hierarchy_MERGED.xml to C:\DITA-OT1.4.2.1\out\hierarchy.fo [xslt] Loading stylesheet C:\DITA-OT1.4.2.1\xsl\dita2fo-shell.xsl dita.fo2pdf: dita.fo2pdf.userconfig: dita.fo2pdf.nouserconfig: [fop] [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [fop] [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [fop] C:\DITA-OT1.4.2.1\out\hierarchy.fo -> C:\DITA-OT1.4.2.1\out\hierarchy.pdf [fop] [INFO] building formatting object tree [fop] [INFO] setting up fonts [fop] [INFO] [1] [fop] [INFO] [2] [fop] [INFO] [1] [fop] [INFO] [2] [fop] [INFO] [3] [fop] [INFO] [4] [fop] [INFO] [5] [fop] [INFO] [6] [fop] [INFO] Parsing of document complete, stopping renderer topic2pdf: dita2pdf: prompt.output.web: prompt.output.docbook: prompt.output: [echo] [echo] output in the out directory [echo] [echo] Before rebuilding, please delete the output or the directory. BUILD SUCCESSFUL Total time: 2 minutes 57 seconds C:\DITA-OT1.4.2.1>