You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.xml 45KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998
  1. <?xml version="1.0"?>
  2. <!-- ===========================================================================
  3. * ================== *
  4. | FOP build system |
  5. * ================== *
  6. Building instructions
  7. =====================
  8. First, make sure your current working directory is where this very file is
  9. located. Then type
  10. ./build.sh (on unixes)
  11. build (on Windows)
  12. If everything is right and all the required packages are visible, this action
  13. will generate a file called "fop.jar" in the "./build" directory.
  14. If you experience any problems with the build please visit the FOP website for
  15. more information: http://xml.apache.org/fop
  16. Build targets
  17. =============
  18. The build system is not only responsible for compiling Fop into a jar file,
  19. but is also responsible for creating the HTML documentation, javadocs,
  20. distributions and web site. In fact, the file you have here is _exactly_ what
  21. is used by fop maintainers to take care of everything in the Fop
  22. project, no less and no more.
  23. Call the build script (see above) with the parameter "-projecthelp" to get a
  24. list of possible build targets.
  25. ============================================================================ -->
  26. <project default="all" basedir=".">
  27. <!-- used to set values for testing etc. -->
  28. <!-- build-local.properties is not stored in CVS and overrides values from build.properties -->
  29. <property file="${basedir}/build-local.properties"/>
  30. <property file="${basedir}/build.properties"/>
  31. <property name="optional.lib.dir" value="${basedir}/lib"/>
  32. <fileset dir="${basedir}" id="dist.bin">
  33. <include name="conf/**"/>
  34. <include name="docs/**"/>
  35. <include name="CHANGES"/>
  36. <include name="LICENSE"/>
  37. <include name="README"/>
  38. <include name="STATUS"/>
  39. <include name="fop.bat"/>
  40. <include name="fop.sh"/>
  41. <exclude name="src/**"/>
  42. <exclude name="dist/**"/>
  43. <exclude name="build/**"/>
  44. <exclude name="lib/**"/>
  45. </fileset>
  46. <fileset dir="${basedir}" id="dist.bin.lib">
  47. <include name="lib/xercesImpl-2.2.1.jar"/>
  48. <include name="lib/xalan-2.4.1.jar"/>
  49. <include name="lib/xml-apis.jar"/>
  50. <include name="lib/batik.jar"/>
  51. <include name="lib/avalon-framework*.jar"/>
  52. </fileset>
  53. <fileset dir="${basedir}" id="dist.src">
  54. <exclude name="lib/classes/**"/>
  55. <exclude name="lib/org/**"/>
  56. <exclude name="lib/src/**"/>
  57. <exclude name="build/**"/>
  58. <include name="src/**"/>
  59. <include name="conf/**"/>
  60. <include name="docs/**"/>
  61. <include name="lib/**"/>
  62. <include name="CHANGES"/>
  63. <include name="LICENSE"/>
  64. <include name="README"/>
  65. <include name="STATUS"/>
  66. <include name="build*"/>
  67. <include name="fop.bat"/>
  68. <include name="fop.sh"/>
  69. </fileset>
  70. <path id="libs-build-classpath">
  71. <fileset dir="${basedir}/lib">
  72. <include name="*.jar"/>
  73. </fileset>
  74. <fileset dir="${optional.lib.dir}">
  75. <include name="*.jar"/>
  76. </fileset>
  77. </path>
  78. <path id="libs-basic-run-classpath">
  79. <fileset dir="${basedir}/lib">
  80. <include name="*.jar"/>
  81. <exclude name="ant.jar"/>
  82. </fileset>
  83. <fileset dir="${optional.lib.dir}">
  84. <include name="*.jar"/>
  85. </fileset>
  86. </path>
  87. <path id="libs-run-classpath">
  88. <path refid="libs-basic-run-classpath"/>
  89. <fileset dir="${basedir}/build">
  90. <include name="fop.jar"/>
  91. </fileset>
  92. </path>
  93. <path id="checkstylepath">
  94. <fileset dir="${basedir}/lib">
  95. <include name="checkstyle-all-*.jar"/>
  96. </fileset>
  97. <fileset dir="${optional.lib.dir}">
  98. <include name="checkstyle-all-*.jar"/>
  99. </fileset>
  100. </path>
  101. <patternset id="exclude-jimi">
  102. <exclude name="org/apache/fop/image/JimiImage.java" unless="jimi.present"/>
  103. </patternset>
  104. <patternset id="exclude-jai">
  105. <exclude name="org/apache/fop/image/JAIImage.java" unless="jai.present"/>
  106. </patternset>
  107. <patternset id="exclude-jce-dependencies">
  108. <exclude name="org/apache/fop/pdf/PDFEncryptionJCE.java" unless="jce.present"/>
  109. </patternset>
  110. <patternset id="base-sources">
  111. <include name="**/*.java"/>
  112. <exclude name="**/*${ignore_this}"/>
  113. </patternset>
  114. <patternset id="graphics-configuration-source">
  115. <include name="org/apache/fop/svg/GraphicsConfiguration.java"/>
  116. </patternset>
  117. <!-- =================================================================== -->
  118. <!-- Initialization target -->
  119. <!-- =================================================================== -->
  120. <target name="init" depends="init-avail, init-filters-jdk14, init-filters-jdk13">
  121. <tstamp/>
  122. <property name="Name" value="Fop"/>
  123. <property name="name" value="fop"/>
  124. <property name="NAME" value="FOP"/>
  125. <property name="version" value="1.0dev"/>
  126. <filter token="version" value="${version}"/>
  127. <property name="year" value="1999-2003"/>
  128. <echo message="------------------- ${Name} ${version} [${year}] ----------------"/>
  129. <echo message="See build.properties and build-local.properties for additional build settings"/>
  130. <property name="build.compiler" value="classic"/>
  131. <property name="debug" value="on"/>
  132. <property name="optimize" value="off"/>
  133. <property name="deprecation" value="on"/>
  134. <property name="textfontencoding" value="WinAnsiEncoding"/>
  135. <property name="src.dir" value="${basedir}/src"/>
  136. <property name="src.java" value="${src.dir}/java"/>
  137. <property name="src.codegen" value="${src.dir}/codegen"/>
  138. <property name="docs.dir" value="${basedir}/docs"/>
  139. <property name="xdocs.dir" value="${src.dir}/documentation/content/xdocs"/>
  140. <property name="fo.examples.dir" value="${basedir}/examples/fo/basic"/>
  141. <property name="lib.dir" value="${basedir}/lib"/>
  142. <property name="hyph.dir" value="${src.dir}/hyph"/>
  143. <property name="conf.dir" value="${basedir}/conf"/>
  144. <property name="packages" value="org.apache.fop.*"/>
  145. <property name="viewer.resources.src.dir" value="${src.java}/org/apache/fop/render/awt/viewer/resources"/>
  146. <property name="viewer.images.src.dir" value="${src.java}/org/apache/fop/render/awt/viewer/images"/>
  147. <property name="build.dir" value="${basedir}/build"/>
  148. <property name="build.src" value="${build.dir}/src"/>
  149. <property name="build.gensrc" value="${build.dir}/gensrc"/>
  150. <property name="build.docsrc" value="${build.dir}/docsrc"/>
  151. <property name="build.codegen" value="${build.src}/codegen"/>
  152. <property name="build.dest" value="${build.dir}/classes"/>
  153. <property name="build.docs" value="${build.dir}/docs"/>
  154. <property name="build.javadocs" value="${build.dir}/javadocs"/>
  155. <property name="build.examples.dir" value="${build.dir}/examples"/>
  156. <property name="viewer.resources.dest.dir" value="${build.dest}/org/apache/fop/render/awt/viewer/resources"/>
  157. <property name="viewer.images.dest.dir" value="${build.dest}/org/apache/fop/render/awt/viewer/Images"/>
  158. <property name="dist.bin.dir" value="${basedir}/dist-bin"/>
  159. <property name="dist.src.dir" value="${basedir}/dist-src"/>
  160. <property name="dist.bin.result.dir" value="${dist.bin.dir}/${Name}-${version}"/>
  161. <property name="dist.src.result.dir" value="${dist.src.dir}/${Name}-${version}"/>
  162. <property name="properties.dir" value="org/apache/fop/fo/properties"/>
  163. <property name="fonts.dir" value="org/apache/fop/fonts/base14"/>
  164. <property name="replacestring" value="org/apache/fop"/>
  165. <property name="ignore_this" value="ignore_this.dummy"/>
  166. <property name="jimi" value="JimiImage.java"/>
  167. <property name="jai" value="JAIImage.java"/>
  168. <property name="xslt" value="org.apache.xalan.xslt.Process"/>
  169. <property name="src.properties.xsl" value="${src.codegen}/properties.xsl"/>
  170. <property name="src.propmaker.xsl" value="${src.codegen}/propmaker.xsl"/>
  171. <property name="propinc.xsl" value="${src.codegen}/propinc.xsl"/>
  172. <property name="src.charlist.xsl" value="${src.codegen}/code-point-mapping.xsl"/>
  173. <property name="encodings.xml" value="${src.codegen}/encodings.xml"/>
  174. <property name="charlist.xsl" value="${src.codegen}/code-point-mapping.xsl"/>
  175. <property name="fontfile.xsl" value="${src.codegen}/font-file.xsl"/>
  176. <property name="t1fontfile.xsl" value="${src.codegen}/t1font-file.xsl"/>
  177. <property name="ttffontfile.xsl" value="${src.codegen}/ttffontfile.xsl"/>
  178. <property name="Courier.xml" value="${src.codegen}/Courier.xml"/>
  179. <property name="Courier-Oblique.xml" value="${src.codegen}/CourierOblique.xml"/>
  180. <property name="Courier-Bold.xml" value="${src.codegen}/CourierBold.xml"/>
  181. <property name="Courier-BoldOblique.xml" value="${src.codegen}/CourierBoldOblique.xml"/>
  182. <property name="Helvetica.xml" value="${src.codegen}/Helvetica.xml"/>
  183. <property name="Helvetica-Oblique.xml" value="${src.codegen}/HelveticaOblique.xml"/>
  184. <property name="Helvetica-Bold.xml" value="${src.codegen}/HelveticaBold.xml"/>
  185. <property name="Helvetica-BoldOblique.xml" value="${src.codegen}/HelveticaBoldOblique.xml"/>
  186. <property name="Times-Roman.xml" value="${src.codegen}/TimesRoman.xml"/>
  187. <property name="Times-Italic.xml" value="${src.codegen}/TimesItalic.xml"/>
  188. <property name="Times-Bold.xml" value="${src.codegen}/TimesBold.xml"/>
  189. <property name="Times-BoldItalic.xml" value="${src.codegen}/TimesBoldItalic.xml"/>
  190. <property name="ZapfDingbats.xml" value="${src.codegen}/ZapfDingbats.xml"/>
  191. <property name="Symbol.xml" value="${src.codegen}/Symbol.xml"/>
  192. <property name="tools.pkg" value="org/apache/fop/tools"/>
  193. <property name="main.class" value="org.apache.fop.apps.Fop"/>
  194. </target>
  195. <target name="init-avail">
  196. <echo message="${ant.version}"/>
  197. <available property="jimi.present" classname="com.sun.jimi.core.Jimi"
  198. classpathref="libs-build-classpath"/>
  199. <condition property="jimi.message" value="Jimi Support PRESENT">
  200. <equals arg1="${jimi.present}" arg2="true"/>
  201. </condition>
  202. <condition property="jimi.message" value="Jimi Support NOT Present">
  203. <not>
  204. <equals arg1="${jimi.present}" arg2="true"/>
  205. </not>
  206. </condition>
  207. <echo message="${jimi.message}"/>
  208. <available property="jai.present" classname="javax.media.jai.JAI"
  209. classpathref="libs-build-classpath"/>
  210. <condition property="jai.message" value="JAI Support PRESENT">
  211. <equals arg1="${jai.present}" arg2="true"/>
  212. </condition>
  213. <condition property="jai.message" value="JAI Support NOT Present">
  214. <not>
  215. <equals arg1="${jai.present}" arg2="true"/>
  216. </not>
  217. </condition>
  218. <echo message="${jai.message}"/>
  219. <available property="jce.present" classname="javax.crypto.Cipher"
  220. classpathref="libs-build-classpath"/>
  221. <condition property="jce.message" value="JCE Support PRESENT">
  222. <equals arg1="${jce.present}" arg2="true"/>
  223. </condition>
  224. <condition property="jce.message" value="JCE Support NOT Present">
  225. <not>
  226. <equals arg1="${jce.present}" arg2="true"/>
  227. </not>
  228. </condition>
  229. <echo message="${jce.message}"/>
  230. <available property="jdk14.present" classname="java.lang.CharSequence"/>
  231. <available property="junit.present" classname="junit.framework.TestCase"
  232. classpathref="libs-build-classpath"/>
  233. <condition property="junit.message" value="JUnit Support PRESENT">
  234. <equals arg1="${junit.present}" arg2="true"/>
  235. </condition>
  236. <condition property="junit.message" value="JUnit Support NOT Present - Committers are required to have JUnit working">
  237. <not>
  238. <equals arg1="${junit.present}" arg2="true"/>
  239. </not>
  240. </condition>
  241. <echo message="${junit.message}"/>
  242. </target>
  243. <target name="init-filters-jdk13" depends="init-avail" unless="jdk14.present">
  244. <echo message="Use GraphicsConfiguration adapter for JDK 1.3 or earlier."/>
  245. <path id="graphics-configuration-adapter">
  246. <pathelement location="src/java-1.3"/>
  247. </path>
  248. </target>
  249. <target name="init-filters-jdk14" depends="init-avail" if="jdk14.present">
  250. <echo message="Use GraphicsConfiguration adapter for JDK 1.4."/>
  251. <path id="graphics-configuration-adapter">
  252. <pathelement location="src/java-1.4"/>
  253. </path>
  254. </target>
  255. <!-- =================================================================== -->
  256. <!-- Help on usage -->
  257. <!-- =================================================================== -->
  258. <target name="usage">
  259. <echo message="Use the -projecthelp option instead"/>
  260. </target>
  261. <!-- =================================================================== -->
  262. <!-- Prepares the build directory -->
  263. <!-- =================================================================== -->
  264. <target name="prepare" depends="init">
  265. <!-- create directories -->
  266. <echo message="Preparing the build directories"/>
  267. <mkdir dir="${build.src}"/>
  268. <mkdir dir="${build.gensrc}"/>
  269. <mkdir dir="${build.gensrc}/${properties.dir}"/>
  270. <mkdir dir="${build.gensrc}/${fonts.dir}"/>
  271. <mkdir dir="${build.dest}/hyph"/>
  272. </target>
  273. <!-- =================================================================== -->
  274. <!-- Generate the source code -->
  275. <!-- =================================================================== -->
  276. <target name="codegen" depends="prepare" description="Generates the java files from the xml resources">
  277. <!-- resetting codegen directory -->
  278. <echo message="Resetting codegen directory"/>
  279. <!-- copy codegen directory -->
  280. <!--copy todir="${build.codegen}">
  281. <fileset dir="${src.codegen}"/>
  282. </copy-->
  283. <!-- generate the java files from xml resources -->
  284. <echo message="Generating the java files from xml resources"/>
  285. <style in="${encodings.xml}" style="${charlist.xsl}"
  286. out="${build.gensrc}/${replacestring}/fonts//CodePointMapping.java"/>
  287. <!--
  288. <style basedir="src/codegen" includes="Helvetica*.xml,Times*.xml,Courier*.xml"
  289. style="${fontfile.xsl}"
  290. destdir="${build.gensrc}/${replacestring}/fonts/base14" extension=".java">
  291. <param name="encoding" expression="${textfontencoding}"/>
  292. </style>
  293. -->
  294. <style in="${Courier.xml}" style="${fontfile.xsl}"
  295. destdir="${build.gensrc}/${replacestring}/fonts/base14"
  296. out="${build.gensrc}/${replacestring}/fonts/base14/Courier.java">
  297. <param name="encoding" expression="${textfontencoding}"/>
  298. </style>
  299. <style in="${Courier-Oblique.xml}" style="${fontfile.xsl}"
  300. destdir="${build.gensrc}/${replacestring}/fonts/base14"
  301. out="${build.gensrc}/${replacestring}/fonts/base14/CourierOblique.java">
  302. <param name="encoding" expression="${textfontencoding}"/>
  303. </style>
  304. <style in="${Courier-Bold.xml}" style="${fontfile.xsl}"
  305. destdir="${build.gensrc}/${replacestring}/fonts/base14"
  306. out="${build.gensrc}/${replacestring}/fonts/base14/CourierBold.java">
  307. <param name="encoding" expression="${textfontencoding}"/>
  308. </style>
  309. <style in="${Courier-BoldOblique.xml}" style="${fontfile.xsl}"
  310. destdir="${build.gensrc}/${replacestring}/fonts/base14"
  311. out="${build.gensrc}/${replacestring}/fonts/base14/CourierBoldOblique.java">
  312. <param name="encoding" expression="${textfontencoding}"/>
  313. </style>
  314. <style in="${Helvetica.xml}" style="${fontfile.xsl}"
  315. destdir="${build.gensrc}/${replacestring}/fonts/base14"
  316. out="${build.gensrc}/${replacestring}/fonts/base14/Helvetica.java">
  317. <param name="encoding" expression="${textfontencoding}"/>
  318. </style>
  319. <style in="${Helvetica-Bold.xml}" style="${fontfile.xsl}"
  320. destdir="${build.gensrc}/${replacestring}/fonts/base14"
  321. out="${build.gensrc}/${replacestring}/fonts/base14/HelveticaBold.java">
  322. <param name="encoding" expression="${textfontencoding}"/>
  323. </style>
  324. <style in="${Helvetica-Oblique.xml}" style="${fontfile.xsl}"
  325. destdir="${build.gensrc}/${replacestring}/fonts/base14"
  326. out="${build.gensrc}/${replacestring}/fonts/base14/HelveticaOblique.java">
  327. <param name="encoding" expression="${textfontencoding}"/>
  328. </style>
  329. <style in="${Helvetica-BoldOblique.xml}" style="${fontfile.xsl}"
  330. destdir="${build.gensrc}/${replacestring}/fonts/base14"
  331. out="${build.gensrc}/${replacestring}/fonts/base14/HelveticaBoldOblique.java">
  332. <param name="encoding" expression="${textfontencoding}"/>
  333. </style>
  334. <style in="${Times-Roman.xml}" style="${fontfile.xsl}"
  335. destdir="${build.gensrc}/${replacestring}/fonts/base14"
  336. out="${build.gensrc}/${replacestring}/fonts/base14/TimesRoman.java">
  337. <param name="encoding" expression="${textfontencoding}"/>
  338. </style>
  339. <style in="${Times-Italic.xml}" style="${fontfile.xsl}"
  340. destdir="${build.gensrc}/${replacestring}/fonts/base14"
  341. out="${build.gensrc}/${replacestring}/fonts/base14/TimesItalic.java">
  342. <param name="encoding" expression="${textfontencoding}"/>
  343. </style>
  344. <style in="${Times-Bold.xml}" style="${fontfile.xsl}"
  345. out="${build.gensrc}/${replacestring}/fonts/base14/TimesBold.java">
  346. <param name="encoding" expression="${textfontencoding}"/>
  347. </style>
  348. <style in="${Times-BoldItalic.xml}" style="${fontfile.xsl}"
  349. out="${build.gensrc}/${replacestring}/fonts/base14/TimesBoldItalic.java">
  350. <param name="encoding" expression="${textfontencoding}"/>
  351. </style>
  352. <style in="${Symbol.xml}" style="${fontfile.xsl}"
  353. out="${build.gensrc}/${replacestring}/fonts/base14/Symbol.java"/>
  354. <style in="${ZapfDingbats.xml}" style="${fontfile.xsl}"
  355. out="${build.gensrc}/${replacestring}/fonts/base14/ZapfDingbats.java"/>
  356. </target>
  357. <!-- =================================================================== -->
  358. <!-- Compiles the source directory -->
  359. <!-- =================================================================== -->
  360. <target name="compile-src" depends="codegen, prepare">
  361. <echo message="Compiling the sources "/>
  362. <!-- create directories -->
  363. <mkdir dir="${build.dest}"/>
  364. <mkdir dir="${viewer.resources.dest.dir}"/>
  365. <copy todir="${viewer.resources.dest.dir}">
  366. <fileset dir="${viewer.resources.src.dir}"/>
  367. </copy>
  368. <mkdir dir="${viewer.images.dest.dir}"/>
  369. <copy todir="${viewer.images.dest.dir}">
  370. <fileset dir="${viewer.images.src.dir}"/>
  371. </copy>
  372. <javac destdir="${build.dest}" debug="${debug}" deprecation="${deprecation}" optimize="${optimize}">
  373. <src path="${build.gensrc}"/>
  374. <src path="${src.java}"/>
  375. <patternset refid="exclude-jce-dependencies"/>
  376. <patternset refid="exclude-jai"/>
  377. <patternset refid="exclude-jimi"/>
  378. <classpath refid="libs-build-classpath"/>
  379. <patternset refid="base-sources"/>
  380. <src refid="graphics-configuration-adapter"/>
  381. <patternset refid="graphics-configuration-source"/>
  382. </javac>
  383. </target>
  384. <target name="compile" depends="compile-src" description="Compiles the source code"/>
  385. <!-- =================================================================== -->
  386. <!-- compiles hyphenation patterns -->
  387. <!-- =================================================================== -->
  388. <target name="hyphenation" depends="prepare">
  389. <path id="hyph-classpath">
  390. <path refid="libs-build-classpath"/>
  391. <pathelement location="${build.dir}/classes"/>
  392. </path>
  393. <taskdef name="serHyph" classname="org.apache.fop.tools.anttasks.SerializeHyphPattern" classpathref="hyph-classpath"/>
  394. <serHyph includes="*.xml"
  395. sourceDir="${hyph.dir}"
  396. targetDir="${build.dest}/hyph"/>
  397. </target>
  398. <!-- =================================================================== -->
  399. <!-- Creates the class package -->
  400. <!-- =================================================================== -->
  401. <target name="package" depends="compile,hyphenation" description="Generates the jar files">
  402. <echo message="Creating the jar file ${build.dir}/${name}.jar"/>
  403. <tstamp>
  404. <format property="ts" pattern="yyyyMMdd-HHmmss-z"/>
  405. </tstamp>
  406. <pathconvert property="manifest-classpath" dirsep="/" pathsep=" " refid="libs-run-classpath">
  407. <map from="${basedir}${file.separator}lib${file.separator}" to=""/>
  408. <map from="${basedir}${file.separator}build${file.separator}fop.jar" to=""/>
  409. <map from="${optional.lib.dir}${file.separator}" to=""/>
  410. </pathconvert>
  411. <jar jarfile="${build.dir}/${name}.jar" basedir="${build.dest}" includes="org/**,hyph/**">
  412. <manifest>
  413. <attribute name="Main-Class" value="${main.class}"/>
  414. <attribute name="Class-Path" value="${manifest-classpath}"/>
  415. <attribute name="Implementation-Title" value="${Name}"/>
  416. <attribute name="Implementation-Version" value="${version}"/>
  417. <attribute name="Implementation-Vendor" value="Apache Software Foundation (http://xml.apache.org/fop/)"/>
  418. <attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}, Java ${java.runtime.version}])"/>
  419. </manifest>
  420. </jar>
  421. </target>
  422. <target name="servlet" depends="package" description="Generates the WAR with the sample FOP servlet">
  423. <echo message="Creating the WAR file"/>
  424. <war warfile="${build.dir}/fop.war" webxml="${src.dir}/conf/web.xml">
  425. <lib dir="${lib.dir}">
  426. <include name="avalon-framework*.jar"/>
  427. <include name="batik*.jar"/>
  428. <include name="commons-io*.jar"/>
  429. </lib>
  430. <lib dir="${build.dir}">
  431. <include name="fop.jar"/>
  432. </lib>
  433. </war>
  434. </target>
  435. <target name="transcoder-pkg" depends="compile" description="Generates the jar for the transcoder package for Batik">
  436. <echo message="Creating the jar file ${build.dir}/fop-transcoder.jar"/>
  437. <property name="fop-transcoder.name" value="FOP Transcoder Package"/>
  438. <property name="fop-transcoder.version" value="1.0beta2"/>
  439. <tstamp>
  440. <format property="ts" pattern="yyyyMMdd-HHmmss-z"/>
  441. </tstamp>
  442. <patternset id="transcoder-classes">
  443. <!-- General classes -->
  444. <patternset>
  445. <include name="org/apache/fop/apps/Document*"/>
  446. <include name="org/apache/fop/fo/FOTreeControl*"/>
  447. <include name="org/apache/fop/fo/FOTreeListener*"/>
  448. <include name="org/apache/fop/area/AreaTreeControl*"/>
  449. <include name="org/apache/fop/svg/**"/>
  450. <include name="org/apache/fop/fonts/**"/>
  451. <!--include name="org/apache/fop/layout/Font*.class"/-->
  452. <include name="org/apache/fop/image/FopImag*.class"/>
  453. <include name="org/apache/fop/image/Jpeg*"/>
  454. <include name="org/apache/fop/image/EPS*"/>
  455. <include name="org/apache/fop/image/Abstract*"/>
  456. <include name="org/apache/fop/image/analyser/*.class"/>
  457. <include name="org/apache/fop/util/CMYKColorSpace*.class"/>
  458. <include name="org/apache/fop/util/StreamUtilities.class"/>
  459. <include name="org/apache/fop/util/*OutputStream.class"/>
  460. <include name="org/apache/fop/util/Finalizable.class"/>
  461. </patternset>
  462. <!-- PDF transcoder -->
  463. <patternset>
  464. <include name="org/apache/fop/render/pdf/**"/>
  465. <exclude name="org/apache/fop/render/pdf/PDFRenderer.class"/>
  466. <exclude name="org/apache/fop/render/pdf/PDFXMLHandler*"/>
  467. <include name="org/apache/fop/pdf/**"/>
  468. </patternset>
  469. <!-- PS transcoder -->
  470. <patternset>
  471. <include name="org/apache/fop/render/ps/**"/>
  472. <exclude name="org/apache/fop/render/pdf/PSRenderer.class"/>
  473. <exclude name="org/apache/fop/render/pdf/PSXMLHandler*"/>
  474. </patternset>
  475. </patternset>
  476. <!-- lean transcoder jar -->
  477. <jar jarfile="${build.dir}/fop-transcoder.jar">
  478. <fileset dir="${build.dest}">
  479. <patternset refid="transcoder-classes"/>
  480. </fileset>
  481. <manifest>
  482. <attribute name="Implementation-Title" value="${fop-transcoder.name}"/>
  483. <attribute name="Implementation-Version" value="${fop-transcoder.version}"/>
  484. <attribute name="Implementation-Vendor" value="Apache Software Foundation (http://xml.apache.org/fop/)"/>
  485. <attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}, Java ${java.runtime.version}])"/>
  486. </manifest>
  487. </jar>
  488. <!-- all-in-one transcoder jar -->
  489. <property name="transcoder-deps" value="${build.dir}/transcoder-dependencies"/>
  490. <mkdir dir="${transcoder-deps}"/>
  491. <unjar dest="${transcoder-deps}">
  492. <patternset>
  493. <include name="org/apache/avalon/framework/*"/>
  494. <include name="org/apache/commons/io/CopyUtils.class"/>
  495. <include name="org/apache/commons/io/IOUtils.class"/>
  496. <include name="org/apache/commons/io/output/ProxyOutputStream.class"/>
  497. <include name="org/apache/commons/io/output/ByteArrayOutputStream.class"/>
  498. <include name="org/apache/commons/io/output/CountingOutputStream.class"/>
  499. </patternset>
  500. <fileset dir="${lib.dir}">
  501. <include name="commons-io*.jar"/>
  502. <include name="avalon-framework*.jar"/>
  503. </fileset>
  504. </unjar>
  505. <mkdir dir="${transcoder-deps}/legal"/>
  506. <copy todir="${transcoder-deps}/legal">
  507. <fileset dir="${lib.dir}">
  508. <include name="avalon.LICENSE.txt"/>
  509. <include name="commons-io.LICENSE.txt"/>
  510. </fileset>
  511. </copy>
  512. <jar jarfile="${build.dir}/fop-transcoder-allinone.jar">
  513. <fileset dir="${build.dest}">
  514. <patternset refid="transcoder-classes"/>
  515. </fileset>
  516. <fileset dir="${transcoder-deps}"/>
  517. <manifest>
  518. <attribute name="Implementation-Title" value="${fop-transcoder.name}"/>
  519. <attribute name="Implementation-Version" value="${fop-transcoder.version}"/>
  520. <attribute name="Implementation-Vendor" value="Apache Software Foundation (http://xml.apache.org/fop/)"/>
  521. <attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}, Java ${java.runtime.version}])"/>
  522. </manifest>
  523. </jar>
  524. </target>
  525. <target name="all" depends="package, servlet, transcoder-pkg, junit"/> <!-- "all" target for us Makefile converts ;-) -->
  526. <!-- =================================================================== -->
  527. <!-- Testing -->
  528. <!-- =================================================================== -->
  529. <target name="test" depends="package" description="Runs the test suite">
  530. <echo message="Testing build in jar file ${build.dir}/${name}.jar against reference"/>
  531. <property name="ref-version" value="1.0dev"/>
  532. <path id="testtask-classpath">
  533. <path refid="libs-build-classpath"/>
  534. <pathelement location="${build.dir}/classes"/>
  535. </path>
  536. <taskdef name="runTest" classname="org.apache.fop.tools.anttasks.RunTest" classpathref="testtask-classpath"/>
  537. <runTest testSuite="basictests.xml" basedir="test/" reference="test/reference/fop.jar"
  538. refVersion="${ref-version}"/>
  539. <runTest testSuite="bugtests.xml" basedir="test/" reference="test/reference/fop.jar"
  540. refVersion="${ref-version}"/>
  541. <!--
  542. <runTest testSuite="testsuite.xml" basedir="TestSuite/NIST/" reference="test/reference/fop.jar"
  543. refVersion="${ref-version}"/>
  544. <runTest testSuite="testsuite.xml" basedir="TestSuite/contrib/IBM/" reference="test/reference/fop.jar"
  545. refVersion="${ref-version}"/>
  546. <runTest testSuite="testsuite.xml" basedir="TestSuite/contrib/FOP/" reference="test/reference/fop.jar"
  547. refVersion="${ref-version}"/>
  548. <runTest testSuite="testsuite.xml" basedir="TestSuite/contrib/XEP/" reference="test/reference/fop.jar"
  549. refVersion="${ref-version}"/>
  550. <runTest testSuite="testsuite.xml" basedir="TestSuite/contrib/XSLFormatter/" reference="test/reference/fop.jar"
  551. refVersion="${ref-version}"/>
  552. -->
  553. </target>
  554. <target name="junit" depends="package, transcoder-pkg" description="Runs FOP's JUnit tests" if="junit.present">
  555. <mkdir dir="${build.dir}/test-classes"/>
  556. <javac destdir="${build.dir}/test-classes" debug="${debug}" deprecation="${deprecation}" optimize="${optimize}">
  557. <src path="${basedir}/test/java"/>
  558. <classpath>
  559. <path refid="libs-build-classpath"/>
  560. <fileset dir="${build.dir}">
  561. <include name="fop.jar"/>
  562. </fileset>
  563. </classpath>
  564. </javac>
  565. <echo message="Running basic functionality tests for fop-transcoder.jar"/>
  566. <mkdir dir="${build.dir}/test-reports/fop-transcoder"/>
  567. <junit>
  568. <sysproperty key="basedir" value="${basedir}"/>
  569. <formatter type="plain"/>
  570. <classpath>
  571. <pathelement location="${build.dir}/test-classes"/>
  572. <path refid="libs-basic-run-classpath"/>
  573. <fileset dir="${build.dir}">
  574. <include name="fop-transcoder.jar"/>
  575. </fileset>
  576. </classpath>
  577. <batchtest todir="${build.dir}/test-reports/fop-transcoder">
  578. <fileset dir="${build.dir}/test-classes">
  579. <include name="org/apache/fop/BasicTranscoderTestSuite.class"/>
  580. </fileset>
  581. </batchtest>
  582. </junit>
  583. <echo message="Running basic functionality tests for fop-transcoder-allinone.jar"/>
  584. <mkdir dir="${build.dir}/test-reports/fop-transcoder-allinone"/>
  585. <junit>
  586. <sysproperty key="basedir" value="${basedir}"/>
  587. <formatter type="plain"/>
  588. <classpath>
  589. <pathelement location="${build.dir}/test-classes"/>
  590. <fileset dir="build">
  591. <include name="fop-transcoder-allinone.jar"/>
  592. </fileset>
  593. <fileset dir="${lib.dir}">
  594. <include name="batik*.jar"/>
  595. </fileset>
  596. </classpath>
  597. <batchtest todir="${build.dir}/test-reports/fop-transcoder-allinone">
  598. <fileset dir="${build.dir}/test-classes">
  599. <include name="org/apache/fop/BasicTranscoderTestSuite.class"/>
  600. </fileset>
  601. </batchtest>
  602. </junit>
  603. <echo message="Running basic functionality tests for fop.jar"/>
  604. <mkdir dir="${build.dir}/test-reports/fop"/>
  605. <junit>
  606. <sysproperty key="basedir" value="${basedir}"/>
  607. <formatter type="plain"/>
  608. <classpath>
  609. <pathelement location="${build.dir}/test-classes"/>
  610. <path refid="libs-build-classpath"/>
  611. <fileset dir="build">
  612. <include name="fop.jar"/>
  613. </fileset>
  614. </classpath>
  615. <batchtest todir="${build.dir}/test-reports/fop">
  616. <fileset dir="${build.dir}/test-classes">
  617. <include name="org/apache/fop/BasicDriverTestSuite.class"/>
  618. <include name="org/apache/fop/UtilityCodeTestSuite.class"/>
  619. </fileset>
  620. </batchtest>
  621. </junit>
  622. </target>
  623. <!-- =================================================================== -->
  624. <!-- Prepares the docs -->
  625. <!-- =================================================================== -->
  626. <target name="prepare-docs" depends="init">
  627. <mkdir dir="${build.docs}"/>
  628. </target>
  629. <!-- =================================================================== -->
  630. <!-- Creates the API documentation -->
  631. <!-- =================================================================== -->
  632. <target name="javadocs" depends="prepare" description="Generates javadocs">
  633. <echo message="Producing the javadoc files "/>
  634. <mkdir dir="${build.javadocs}"/>
  635. <javadoc
  636. packagenames="${packages}"
  637. destdir="${build.javadocs}"
  638. classpathref="libs-build-classpath"
  639. author="true"
  640. version="true"
  641. windowtitle="${NAME} API"
  642. doctitle="Formatting Objects Processor (FOP)"
  643. bottom="Copyright &#169; ${year} Apache Software Foundation. All Rights Reserved."
  644. overview="${src.dir}/java/org/apache/fop/overview.html"
  645. use="true"
  646. failonerror="true">
  647. <sourcepath>
  648. <pathelement path="${src.java}"/>
  649. <pathelement path="${build.gensrc}"/>
  650. <path refid="graphics-configuration-adapter"/>
  651. </sourcepath>
  652. <group title="Control and Startup">
  653. <package name="org.apache.fop.apps"/>
  654. <package name="org.apache.fop.configuration"/>
  655. <package name="org.apache.fop.messaging"/>
  656. <package name="org.apache.fop.servlet"/>
  657. </group>
  658. <group title="XSL-FO Tree">
  659. <package name="org.apache.fop.fo"/>
  660. <package name="org.apache.fop.fo.*"/>
  661. <package name="org.apache.fop.datatypes"/>
  662. <package name="org.apache.fop.extensions"/>
  663. </group>
  664. <group title="Layout">
  665. <package name="org.apache.fop.layoutmgr"/>
  666. <package name="org.apache.fop.layoutmgr.*"/>
  667. <package name="org.apache.fop.layout"/>
  668. <package name="org.apache.fop.layout.*"/>
  669. </group>
  670. <group title="Area Tree">
  671. <package name="org.apache.fop.area"/>
  672. <package name="org.apache.fop.area.*"/>
  673. </group>
  674. <group title="Paginated Rendering">
  675. <package name="org.apache.fop.render"/>
  676. <package name="org.apache.fop.render.*"/>
  677. <package name="org.apache.fop.viewer"/>
  678. </group>
  679. <group title="Structural Rendering">
  680. <package name="org.apache.fop.render.rtf"/>
  681. <package name="org.apache.fop.render.mif"/>
  682. </group>
  683. <group title="Utility">
  684. <package name="org.apache.fop.pdf"/>
  685. <package name="org.apache.fop.tools"/>
  686. <package name="org.apache.fop.tools.*"/>
  687. <package name="org.apache.fop.svg"/>
  688. <package name="org.apache.fop.image"/>
  689. <package name="org.apache.fop.image.*"/>
  690. <package name="org.apache.fop.fonts"/>
  691. <package name="org.apache.fop.fonts.*"/>
  692. <package name="org.apache.fop.util"/>
  693. </group>
  694. <group title="RTFLib (formerly JFor) Subpackage Candidate">
  695. <package name="org.apache.fop.render.rtf.rtflib"/>
  696. <package name="org.apache.fop.render.rtf.rtflib.*"/>
  697. </group>
  698. </javadoc>
  699. </target>
  700. <target name="html" depends="javadocs, htmldoc" description="Generates javadocs and documentation in html format"/>
  701. <target name="htmldoc" depends="html-fop, html-design" description="Generates documentation in html format"/>
  702. <target name="html-fop" depends="prepare">
  703. <copy file="${xdocs.dir}/fop.xml" tofile="${xdocs.dir}/book.xml" filtering="on"/>
  704. <java classname="${doc.generator}" fork="yes">
  705. <classpath refid="libs-build-classpath"/>
  706. <arg line="targetDirectory=${docs.dir} ${xdocs.dir}/book.xml ${skins}"/>
  707. </java>
  708. </target>
  709. <target name="html-design" depends="prepare, html-newdesign,
  710. html-altdesign, html-understanding"/>
  711. <target name="html-newdesign" depends="prepare">
  712. <java classname="${doc.generator}" fork="yes">
  713. <classpath refid="libs-build-classpath"/>
  714. <arg line="targetDirectory=${docs}/design/ docs/design/book.xml ${skins}"/>
  715. </java>
  716. </target>
  717. <target name="html-altdesign" depends="prepare">
  718. <java classname="${doc.generator}" fork="yes">
  719. <classpath refid="libs-build-classpath"/>
  720. <arg line="targetDirectory=${docs}/design/alt.design/ docs/design/alt.design/book.xml ${skins}"/>
  721. </java>
  722. </target>
  723. <target name="html-understanding" depends="prepare">
  724. <java classname="${doc.generator}" fork="yes">
  725. <classpath refid="libs-build-classpath"/>
  726. <arg line="targetDirectory=${docs}/design/understanding docs/design/understanding/book.xml ${skins}"/>
  727. </java>
  728. </target>
  729. <target name="pdfdoc" depends="package" description="Generates the documentation in pdf format">
  730. <copy file="${xdocs}/fop.xml" tofile="${xdocs}/book.xml" filtering="on"/>
  731. <style in="${xdocs}/fop.xml" style="${xdocs}/xml2xml.xsl" out="${xdocs}/fop-doc.xml"/>
  732. <style in="${xdocs}/fop-doc.xml" style="${xdocs}/xml2pdf.xsl" out="${xdocs}/fop.fo"/>
  733. <java classname="org.apache.fop.apps.Fop" fork="yes">
  734. <classpath refid="libs-run-classpath"/>
  735. <arg line="-fo ${xdocs}/fop.fo -pdf ${xdocs}/fop.pdf"/>
  736. </java>
  737. </target>
  738. <!-- =================================================================== -->
  739. <!-- Checkstyle -->
  740. <!-- =================================================================== -->
  741. <target name="checkstyle" depends="prepare" description="Runs Checkstyle for a code quality report">
  742. <available property="checkstyle.available" classname="com.puppycrawl.tools.checkstyle.CheckStyleTask" classpathref="checkstylepath"/>
  743. <fail message="Please put checkstyle-all-*.jar in the lib directory. Get it from http://checkstyle.sourceforge.net" unless="checkstyle.available"/>
  744. <taskdef name="checkstyle" classname="com.puppycrawl.tools.checkstyle.CheckStyleTask" classpathref="checkstylepath"/>
  745. <checkstyle properties="checkstyle.cfg" failonviolation="false">
  746. <fileset dir="${src.java}" includes="org/apache/fop/**/*.java"/>
  747. <formatter type="plain" toFile="${build.dir}/checkstyle_report.txt"/>
  748. <formatter type="xml" toFile="${build.dir}/checkstyle_report.xml"/>
  749. </checkstyle>
  750. <available property="checkstyle.stylesheet.available" file="checkstyle-noframes.xsl"/>
  751. <antcall target="checkstyle-html"/>
  752. </target>
  753. <target name="checkstyle-html" if="checkstyle.stylesheet.available">
  754. <style in="${build.dir}/checkstyle_report.xml" out="${build.dir}/checkstyle_report.html" style="checkstyle-noframes.xsl"/>
  755. </target>
  756. <!-- =================================================================== -->
  757. <!-- Creates the distribution -->
  758. <!-- =================================================================== -->
  759. <target name="dist" depends="dist-src,dist-bin" description="Generates the distribution package"/>
  760. <target name="dist-bin" depends="all">
  761. <echo message="Building the binary distribution files (zip,tar)"/>
  762. <mkdir dir="${dist.bin.result.dir}"/>
  763. <copy todir="${dist.bin.result.dir}">
  764. <fileset refid="dist.bin"/>
  765. <fileset refid="dist.bin.lib"/>
  766. </copy>
  767. <mkdir dir="${dist.bin.result.dir}/build"/>
  768. <copy todir="${dist.bin.result.dir}/build" file="build/fop.jar"/>
  769. <chmod file="${dist.bin.result.dir}/fop.sh" perm="ugo+rx"/>
  770. <zip zipfile="${Name}-${version}-bin.zip" basedir="${dist.bin.dir}" includes="**"/>
  771. <tar tarfile="${Name}-${version}-bin.tar" basedir="${dist.bin.dir}" includes="**"/>
  772. <gzip zipfile="${Name}-${version}-bin.tar.gz" src="${Name}-${version}-bin.tar"/>
  773. <delete file="${Name}-${version}-bin.tar"/>
  774. </target>
  775. <target name="dist-src" depends="all, javadocs">
  776. <echo message="Building the source distribution files (zip,tar)"/>
  777. <mkdir dir="${dist.src.result.dir}"/>
  778. <copy todir="${dist.src.result.dir}">
  779. <fileset refid="dist.src"/>
  780. </copy>
  781. <copy todir="${dist.src.result.dir}/javadocs">
  782. <fileset dir="${build.javadocs}"/>
  783. </copy>
  784. <mkdir dir="${dist.src.result.dir}/build"/>
  785. <copy todir="${dist.src.result.dir}/build" file="build/fop.jar"/>
  786. <chmod file="${dist.src.result.dir}/build.sh" perm="ugo+rx"/>
  787. <chmod file="${dist.src.result.dir}/fop.sh" perm="ugo+rx"/>
  788. <zip zipfile="${Name}-${version}-src.zip" basedir="${dist.src.dir}" includes="**"/>
  789. <tar tarfile="${Name}-${version}-src.tar" basedir="${dist.src.dir}" includes="**"/>
  790. <gzip zipfile="${Name}-${version}-src.tar.gz" src="${Name}-${version}-src.tar"/>
  791. <delete file="${Name}-${version}-src.tar"/>
  792. </target>
  793. <!-- =================================================================== -->
  794. <!-- Generate example PDFs -->
  795. <!-- =================================================================== -->
  796. <target name="examples" depends="package" description="Generates example PDF files">
  797. <taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop"
  798. classpathref="libs-run-classpath"/>
  799. <mkdir dir="${build.examples.dir}"/>
  800. <fop format="${build.property.examples.mime.type}" outdir="${build.examples.dir}"
  801. messagelevel="debug" basedir="${fo.examples.dir}">
  802. <fileset dir="${fo.examples.dir}">
  803. <include name="**/*.fo"/>
  804. </fileset>
  805. </fop>
  806. </target>
  807. <!-- =================================================================== -->
  808. <!-- Helper task to generate source files that have already been -->
  809. <!-- checked into CVS. For these files, CVS version is the official one -->
  810. <!-- and may have updates that will *not* be generated by below. This -->
  811. <!-- target should never be part of the normal build process. -->
  812. <!-- =================================================================== -->
  813. <target name="xsltToJava" >
  814. <style in="src\codegen\constants.xml" style="src\codegen\constants.xsl"
  815. out="Constants.java"/>
  816. <style in="src/codegen/foelements.xml" style="src/codegen/property-sets.xsl"
  817. out="PropertySets.java"/>
  818. </target>
  819. <!-- =================================================================== -->
  820. <!-- Special target for Gump -->
  821. <!-- =================================================================== -->
  822. <target name="gump" depends="all, javadocs"/>
  823. <!-- =================================================================== -->
  824. <!-- Clean targets -->
  825. <!-- =================================================================== -->
  826. <target name="clean" depends="init" description="Cleans the build directory">
  827. <delete dir="${build.dir}"/>
  828. </target>
  829. <target name="distclean" depends="clean" description="Cleans the distribution target directories">
  830. <delete dir="${dist.src.dir}"/>
  831. <delete dir="${dist.bin.dir}"/>
  832. <delete>
  833. <fileset dir="${basedir}" includes="${Name}-*.tar.gz"/>
  834. <fileset dir="${basedir}" includes="${Name}-*.zip"/>
  835. </delete>
  836. </target>
  837. <target name="validate-xdocs" depends="init" description="Validate the
  838. xdocs. Point schemas.dir to Forrest's 'schemas' directory.">
  839. <property name="schemas.dir" value="../xml-forrest/src/resources/schema"/>
  840. <xmlvalidate failonerror="no">
  841. <fileset dir="${xdocs.dir}" includes="**.xml"/>
  842. <xmlcatalog>
  843. <entity publicId="-//APACHE//DTD Compliance V1.0//EN"
  844. location="src/documentation/resources/schema/dtd/compliance-v10.dtd"/>
  845. <entity publicId="-//APACHE//DTD Documentation V1.1//EN"
  846. location="${schemas.dir}/dtd/document-v11.dtd"/>
  847. <entity publicId="-//APACHE//DTD Specification V1.1//EN"
  848. location="${schemas.dir}/dtd/specification-v11.dtd"/>
  849. <entity publicId="-//APACHE//DTD FAQ V1.1//EN"
  850. location="${schemas.dir}/dtd/faq-v11.dtd"/>
  851. <entity publicId="-//APACHE//DTD Changes V1.1//EN"
  852. location="${schemas.dir}/dtd/changes-v11.dtd"/>
  853. <entity publicId="-//APACHE//DTD Todo V1.1//EN"
  854. location="${schemas.dir}/dtd/todo-v11.dtd"/>
  855. <entity publicId="-//APACHE//DTD Cocoon Documentation Book V1.0//EN"
  856. location="${schemas.dir}/dtd/book-cocoon-v10.dtd"/>
  857. <entity publicId="-//APACHE//DTD Cocoon Documentation Tab V1.0//EN"
  858. location="${schemas.dir}/dtd/tab-cocoon-v10.dtd"/>
  859. <entity publicId="-//APACHE//DTD How-to V1.0//EN"
  860. location="${schemas.dir}/dtd/howto-v10.dtd"/>
  861. <entity publicId="-//APACHE//DTD Gump Descriptor V1.0//EN"
  862. location="${schemas.dir}/dtd/xgump-draft.dtd"/>
  863. <entity publicId="-//APACHE//DTD JavaDoc V1.0//EN"
  864. location="${schemas.dir}/dtd/javadoc-v04draft.dtd"/>
  865. <entity publicId="-//APACHE//DTD Contributors V1.0//EN"
  866. location="${schemas.dir}/dtd/contributors-v10.dtd"/>
  867. <entity publicId="-//Outerthought//DTD Libre Configuration V0.1//EN"
  868. location="${schemas.dir}/dtd/libre-v01.dtd"/>
  869. <entity publicId="-//APACHE//ENTITIES Documentation V1.1//EN"
  870. location="${schemas.dir}/dtd/document-v11.mod"/>
  871. <entity publicId="-//APACHE//ENTITIES FAQ V1.1//EN"
  872. location="${schemas.dir}/dtd/faq-v11.mod"/>
  873. <entity publicId="-//APACHE//ENTITIES Todo V1.1//EN"
  874. location="${schemas.dir}/dtd/todo-v11.mod"/>
  875. <entity publicId="-//APACHE//ENTITIES Common Elements V1.0//EN"
  876. location="${schemas.dir}/dtd/common-elems-v10.mod"/>
  877. <entity publicId="-//APACHE//ENTITIES Common Character Entity Sets V1.0//EN"
  878. location="${schemas.dir}/dtd/common-charents-v10.mod"/>
  879. <entity publicId="ISO 8879-1986//ENTITIES Added Latin 1//EN//XML"
  880. location="${schemas.dir}/entity/ISOlat1.pen"/>
  881. <entity publicId="ISO 9573-15:1993//ENTITIES Greek Letters//EN//XML"
  882. location="${schemas.dir}/entity/ISOgrk1.pen"/>
  883. <entity publicId="ISO 8879:1986//ENTITIES Publishing//EN//XML"
  884. location="${schemas.dir}/entity/ISOpub.pen"/>
  885. <entity publicId="ISO 8879:1986//ENTITIES General Technical//EN//XML"
  886. location="${schemas.dir}/entity/ISOtech.pen"/>
  887. <entity publicId="ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML"
  888. location="${schemas.dir}/entity/ISOnum.pen"/>
  889. <entity publicId="ISO 8879:1986//ENTITIES Diacritical Marks//EN//XML"
  890. location="${schemas.dir}/entity/ISOdia.pen"/>
  891. <entity publicId="ISO 8879:1986//ENTITIES Added Latin 1//EN//XML"
  892. location="${schemas.dir}/entity/ISOlat1.pen"/>
  893. </xmlcatalog>
  894. </xmlvalidate>
  895. </target>
  896. </project>