DocBook Framework
  1. DocBook Framework
  2. DBF-4

build-docbook.xml fails on htmlsingle target when html target is not executed first

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0, 1.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Win XP 2000 SP2, Cygwin, Java 1.6.0_02-b06, Apache Ant 1.7.0
      docbook-xml-4.5, docbook-xsl-snapshot

      Description

      Executing the htmlsingle target before executing the (chunked) html target results in failure

      When running the htmlsingle target after the (chunked) html target, everything works.

      ----------------------------

      My local build file contains the following targets:

      <property name="dbf.basedir" location="." />
      <property file="docbook.properties"/>

      <property name="docbook.dir" value="." />
      <property name="docbook.file" value="usersmanual"/>

      <target name="htmlsingle" description="Building single HTML documentation">
      <ant antfile="$

      {dbf.basedir}/build-docbook.xml" target="htmlsingle" />
      </target>

      <target name="htmlchunk" description="Building chunked HTML documentation">
      <ant antfile="${dbf.basedir}

      /build-docbook.xml" target="html" />
      </target>

      <target name="clean" description="Clean the target directory">
      <ant antfile="$

      {dbf.basedir}

      /build-docbook.xml" target="clean" />
      </target>

      ----------------------------------------
      plato% ant clean
      ...
      plato% ant htmlsingle
      Buildfile: build.xml

      htmlsingle:

      prepare:
      [mkdir] Created dir: c:\dev\dbf-trunk\target\tmp
      [mkdir] Created dir: c:\dev\dbf-trunk\target\docbook-xml-4.5
      [unzip] Expanding: c:\dev\dbf-trunk\src\zip\docbook-xml-4.5.zip into c:\dev\dbf-trunk\target\docbook-xml-4.5
      [mkdir] Created dir: c:\dev\dbf-trunk\target\docbook-xsl-snapshot
      [unzip] Expanding: c:\dev\dbf-trunk\src\zip\docbook-xsl-snapshot.zip into c:\dev\dbf-trunk\target
      [copy] Copying 2 files to c:\dev\dbf-trunk\target\tmp

      htmlsingle:
      [copy] Copying 1 file to c:\dev\dbf-trunk\target\tmp
      [copy] Warning: Could not find file c:\dev\dbf-trunk\src\styles\htmlsingle\custom.xsl to copy.
      [copy] Copying 1 file to c:\dev\dbf-trunk\target\tmp
      [mkdir] Created dir: c:\dev\dbf-trunk\target\htmlsingle
      [copy] Warning: Could not find file c:\dev\dbf-trunk\src\styles\html\titlepage.xml to copy.
      [copy] Copying 1 file to c:\dev\dbf-trunk\target\tmp
      [copy] Warning: Could not find file c:\dev\dbf-trunk\src\docbook\usersmanual.htmlsingle_imageincludes.txt to copy.
      [copy] Copying 1 file to c:\dev\dbf-trunk\target\tmp
      [copy] Copying 9 files to c:\dev\dbf-trunk\target\htmlsingle\images
      [java]
      [java] file:///c:/dev/dbf-trunk/target/tmp/htmlsingle.xsl; Line #26; Column #75; XSLT Error (javax.xml.transform.TransformerConfigurationException): javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: Had IO Exception with stylesheet file: file:///c:/dev/dbf-trunk/target/tmp/html-style.xsl
      [java] Exception in thread "main" java.lang.RuntimeException: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: Had IO Exception with stylesheet file: file:///c:/dev/dbf-trunk/target/tmp/html-style.xsl
      [java] at org.apache.xalan.xslt.Process.doExit(Process.java:1153)
      [java] at org.apache.xalan.xslt.Process.main(Process.java:1126)
      [java] Java Result: 1
      [copy] Copying 97 files to c:\dev\dbf-trunk\target\htmlsingle\images
      [copy] Copied 1 empty directory to 1 empty directory under c:\dev\dbf-trunk\target\htmlsingle\css

      BUILD FAILED
      c:\dev\dbf-trunk\build.xml:16: The following error occurred while executing this line:
      c:\dev\dbf-trunk\build-docbook.xml:323: Warning: Could not find file c:\dev\dbf-trunk\target\htmlsingle\usersmanual.xml to copy.

      Total time: 17 seconds
      plato%

      -------------------------------------------------
      However, when combining the target with the chunked HTML target, everything works.

      plato% ant clean
      ...
      plato% ant htmlchunk htmlsingle
      Buildfile: build.xml

      htmlchunk:

      prepare:
      [unzip] Expanding: c:\dev\dbf-trunk\src\zip\docbook-xml-4.5.zip into c:\dev\dbf-trunk\target\docbook-xml-4.5
      [unzip] Expanding: c:\dev\dbf-trunk\src\zip\docbook-xsl-snapshot.zip into c:\dev\dbf-trunk\target
      [copy] Copying 2 files to c:\dev\dbf-trunk\target\tmp

      html:
      [copy] Copying 1 file to c:\dev\dbf-trunk\target\tmp
      [copy] Warning: Could not find file c:\dev\dbf-trunk\src\styles\html\custom.xsl to copy.
      [copy] Copying 1 file to c:\dev\dbf-trunk\target\tmp
      [mkdir] Created dir: c:\dev\dbf-trunk\target\html
      [copy] Warning: Could not find file c:\dev\dbf-trunk\src\styles\html\titlepage.xml to copy.
      [copy] Copying 1 file to c:\dev\dbf-trunk\target\tmp
      [copy] Warning: Could not find file c:\dev\dbf-trunk\src\docbook\usersmanual.html_imageincludes.txt to copy.
      [copy] Copying 1 file to c:\dev\dbf-trunk\target\tmp
      [copy] Copying 9 files to c:\dev\dbf-trunk\target\html\images
      [java] file:/c:/dev/dbf-trunk/target/docbook-xsl-snapshot/html/chunker.xsl; Line #98; Column #18; Writing c:/dev/dbf-trunk/target/html/pr01.html for preface
      [java] file:/c:/dev/dbf-trunk/target/docbook-xsl-snapshot/html/chunker.xsl; Line #98; Column #18; Writing c:/dev/dbf-trunk/target/html/pr02.html for preface
      [java] file:/c:/dev/dbf-trunk/target/docbook-xsl-snapshot/html/chunker.xsl; Line #98; Column #18; Writing c:/dev/dbf-trunk/target/html/ch01s02.html for sect1(Scope)
      [java] file:/c:/dev/dbf-trunk/target/docbook-xsl-snapshot/html/chunker.xsl; Line #98; Column #18; Writing c:/dev/dbf-trunk/target/html/ch01s03.html for sect1(DocumentOrganization)
      [java] file:/c:/dev/dbf-trunk/target/docbook-xsl-snapshot/html/chunker.xsl; Line #98; Column #18; Writing c:/dev/dbf-trunk/target/html/ch01.html for chapter(ch1)
      [java] file:/c:/dev/dbf-trunk/target/docbook-xsl-snapshot/html/chunker.xsl; Line #98; Column #18; Writing c:/dev/dbf-trunk/target/html/ch02s02.html for sect1
      [java] file:/c:/dev/dbf-trunk/target/docbook-xsl-snapshot/html/chunker.xsl; Line #98; Column #18; Writing c:/dev/dbf-trunk/target/html/ch02s03.html for sect1
      [java] file:/c:/dev/dbf-trunk/target/docbook-xsl-snapshot/html/chunker.xsl; Line #98; Column #18; Writing c:/dev/dbf-trunk/target/html/ch02s04.html for sect1
      [java] file:/c:/dev/dbf-trunk/target/docbook-xsl-snapshot/html/chunker.xsl; Line #98; Column #18; Writing c:/dev/dbf-trunk/target/html/ch02s05.html for sect1
      [java] file:/c:/dev/dbf-trunk/target/docbook-xsl-snapshot/html/chunker.xsl; Line #98; Column #18; Writing c:/dev/dbf-trunk/target/html/ch02.html for chapter(PPRTRequirements)
      [java] file:/c:/dev/dbf-trunk/target/docbook-xsl-snapshot/html/chunker.xsl; Line #98; Column #18; Writing c:/dev/dbf-trunk/target/html/ch03s02.html for sect1
      [java] file:/c:/dev/dbf-trunk/target/docbook-xsl-snapshot/html/chunker.xsl; Line #98; Column #18; Writing c:/dev/dbf-trunk/target/html/ch03.html for chapter(UsingThePPRT)
      [java] file:/c:/dev/dbf-trunk/target/docbook-xsl-snapshot/html/chunker.xsl; Line #98; Column #18; Writing c:/dev/dbf-trunk/target/html/ch04s02.html for sect1
      [java] file:/c:/dev/dbf-trunk/target/docbook-xsl-snapshot/html/chunker.xsl; Line #98; Column #18; Writing c:/dev/dbf-trunk/target/html/ch04s03.html for sect1
      [java] file:/c:/dev/dbf-trunk/target/docbook-xsl-snapshot/html/chunker.xsl; Line #98; Column #18; Writing c:/dev/dbf-trunk/target/html/ch04s04.html for sect1
      [java] file:/c:/dev/dbf-trunk/target/docbook-xsl-snapshot/html/chunker.xsl; Line #98; Column #18; Writing c:/dev/dbf-trunk/target/html/ch04.html for chapter(ScreenShots)
      [java] file:/c:/dev/dbf-trunk/target/docbook-xsl-snapshot/html/chunker.xsl; Line #98; Column #18; Writing c:/dev/dbf-trunk/target/html/go01.html for glossary
      [java] file:/c:/dev/dbf-trunk/target/docbook-xsl-snapshot/html/chunker.xsl; Line #98; Column #18; Writing c:/dev/dbf-trunk/target/html/ix01.html for index
      [java] file:/c:/dev/dbf-trunk/target/docbook-xsl-snapshot/html/chunker.xsl; Line #98; Column #18; Writing c:/dev/dbf-trunk/target/html/index.html for book
      [copy] Copying 97 files to c:\dev\dbf-trunk\target\html\images
      [copy] Copied 1 empty directory to 1 empty directory under c:\dev\dbf-trunk\target\html\css
      [delete] Deleting: c:\dev\dbf-trunk\target\html\usersmanual.xml
      [zip] Building zip: c:\dev\dbf-trunk\target\html\usersmanual.zip

      htmlsingle:

      prepare:
      [unzip] Expanding: c:\dev\dbf-trunk\src\zip\docbook-xml-4.5.zip into c:\dev\dbf-trunk\target\docbook-xml-4.5
      [unzip] Expanding: c:\dev\dbf-trunk\src\zip\docbook-xsl-snapshot.zip into c:\dev\dbf-trunk\target
      [copy] Copying 2 files to c:\dev\dbf-trunk\target\tmp

      htmlsingle:
      [copy] Copying 1 file to c:\dev\dbf-trunk\target\tmp
      [copy] Warning: Could not find file c:\dev\dbf-trunk\src\styles\htmlsingle\custom.xsl to copy.
      [copy] Copying 1 file to c:\dev\dbf-trunk\target\tmp
      [mkdir] Created dir: c:\dev\dbf-trunk\target\htmlsingle
      [copy] Warning: Could not find file c:\dev\dbf-trunk\src\styles\html\titlepage.xml to copy.
      [copy] Copying 1 file to c:\dev\dbf-trunk\target\tmp
      [copy] Warning: Could not find file c:\dev\dbf-trunk\src\docbook\usersmanual.htmlsingle_imageincludes.txt to copy.
      [copy] Copying 1 file to c:\dev\dbf-trunk\target\tmp
      [copy] Copying 9 files to c:\dev\dbf-trunk\target\htmlsingle\images
      [copy] Copying 97 files to c:\dev\dbf-trunk\target\htmlsingle\images
      [copy] Copied 1 empty directory to 1 empty directory under c:\dev\dbf-trunk\target\htmlsingle\css
      [move] Moving 1 file to c:\dev\dbf-trunk\target\htmlsingle
      [zip] Building zip: c:\dev\dbf-trunk\target\htmlsingle\usersmanual.zip

      BUILD SUCCESSFUL
      Total time: 55 seconds
      plato%

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Fred Muhlenberg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development