DocBook Framework
  1. DocBook Framework
  2. DBF-3

Patch to build-docbook.xml to support FOP 0.94

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 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

      The following is a patch to the build-docbook.xml to support PDF generation using Apache FOP 0.94

      plato% svn diff build-docbook.xml
      Index: build-docbook.xml
      ===================================================================
      — build-docbook.xml (revision 575675)
      +++ build-docbook.xml (working copy)
      @@ -265,8 +265,10 @@

      <java classname="org.apache.fop.cli.Main" fork="true" maxmemory="256m"
      dir="$

      {basedir}

      " classpathref="dbf.classpath">

      • <arg value="$ {pdf.target.file}.xml"/>
        - <arg value="${target.dir}/${docbook.dir}/pdf/${docbook.file}.pdf"/>
        + <arg value="-fo"/>
        + <arg value="${pdf.target.file}

        .xml"/>
        + <arg value="-pdf"/>
        + <arg value="$

        {target.dir}

        /$

        {docbook.dir}

        /pdf/$

        {docbook.file}

        .pdf"/>
        </java>
        </target>

      Additional steps:
      1) Delete lib/fop-0.93.jar
      2) Add fop-0.94.jar to lib

        Activity

        Hide
        Fred Muhlenberg added a comment -

        Now that I've had more time to look, I realize this patch doesn't really change anything.
        The org.apache.fop.cli.Main will accept the $

        {pdf.target.file}

        .xml and $

        {target.dir}

        /$

        {docbook.dir}

        /pdf/$

        {docbook.file}

        .pdf
        as is (ie without the -fo and -pdf parameters).
        However, I would argue that for the sake of clarity the addition of the -fo and -pdf flags is needed.

        Show
        Fred Muhlenberg added a comment - Now that I've had more time to look, I realize this patch doesn't really change anything. The org.apache.fop.cli.Main will accept the $ {pdf.target.file} .xml and $ {target.dir} /$ {docbook.dir} /pdf/$ {docbook.file} .pdf as is (ie without the -fo and -pdf parameters). However, I would argue that for the sake of clarity the addition of the -fo and -pdf flags is needed.

          People

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

            Dates

            • Created:
              Updated:

              Development