You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2007/02/14 05:19:37 UTC
svn commit: r507381 -
/incubator/uima/uimaj/trunk/uima-docbooks/build-docbook.xml
Author: schor
Date: Tue Feb 13 20:19:36 2007
New Revision: 507381
URL: http://svn.apache.org/viewvc?view=rev&rev=507381
Log:
UIMA-311 Fail the build if the docbook system xml & xsl
files are not unzipped, and the zipped sources are missing,
before creating the unzipped dir.
Modified:
incubator/uima/uimaj/trunk/uima-docbooks/build-docbook.xml
Modified: incubator/uima/uimaj/trunk/uima-docbooks/build-docbook.xml
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uima-docbooks/build-docbook.xml?view=diff&rev=507381&r1=507380&r2=507381
==============================================================================
--- incubator/uima/uimaj/trunk/uima-docbooks/build-docbook.xml (original)
+++ incubator/uima/uimaj/trunk/uima-docbooks/build-docbook.xml Tue Feb 13 20:19:36 2007
@@ -137,7 +137,13 @@
<!-- xercesImpl.jar comes first to allow using XInclude -->
<pathelement location="${basedir}/lib/xercesImpl.jar"/>
<pathelement location="${basedir}/lib/xml-apis.jar"/>
+ <!-- for fop 0.93
+ <pathelement location="${basedir}/fop-0.93/build/fop.jar"/>
+ <fileset dir="${basedir}/fop-0.93/lib">
+ -->
+ <!-- for fop 0.92 -->
<fileset dir="${basedir}/lib">
+
<include name="*.jar"/>
</fileset>
<fileset dir="${docbook.xsl.dir}/extensions">
@@ -314,6 +320,27 @@
tofile="${target.dir}/${chapter_name}/${docbook.outname}.pdf_src.xml"/>
</target>
+ <target name="fop_debug" description="internal - runs fop only">
+
+ <java classname="org.apache.fop.apps.Fop" fork="true" maxmemory="256m"
+ dir="${basedir}" classpathref="docbook.classpath">
+ <arg value="-c"/>
+ <arg value="${docbook.fontconfig}"/>
+ <arg value="${target.dir}/${chapter_name}/${docbook.outname}.pdf_src.xml"/>
+ <arg value="${target.dir}/${chapter_name}/${docbook.outname}.pdf"/>
+ </java>
+ <!--
+ <java classname="org.apache.fop.cli.Main" fork="true" maxmemory="256m"
+ dir="${basedir}" classpathref="docbook.classpath">
+ <arg value="-c"/>
+ <arg value="${docbook.fontconfig}"/>
+ <arg value="${target.dir}/${chapter_name}/${docbook.outname}.pdf_src.xml"/>
+ <arg value="${target.dir}/${chapter_name}/${docbook.outname}.pdf"/>
+ </java>
+ -->
+ </target>
+
+
<!-- ======================================================================== -->
<!-- == == -->
<!-- == Create the HTML documentation, many pages == -->
@@ -374,6 +401,23 @@
<target name="unzip_docbook_ref"
description="internal: unzips docbook xml and xsl style sheets"
unless="docbook.ref.unzipped.already">
+
+ <fail message="missing ${zip.src.dir}/docbook-xml-${docbook.xml.version}.zip">
+ <condition>
+ <not>
+ <available file="${zip.src.dir}/docbook-xml-${docbook.xml.version}.zip"/>
+ </not>
+ </condition>
+ </fail>
+
+ <fail message="missing ${zip.src.dir}/docbook-xsl-${docbook.xsl.version}.zip">
+ <condition>
+ <not>
+ <available file="${zip.src.dir}/docbook-xsl-${docbook.xsl.version}.zip"/>
+ </not>
+ </condition>
+ </fail>
+
<mkdir dir="${docbook.xml.dir}" />
<unzip src="${zip.src.dir}/docbook-xml-${docbook.xml.version}.zip" dest="${docbook.xml.dir}" />