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 3.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?xml version="1.0"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <!-- =========================================================================== -->
  17. <project default="newPDF" basedir=".">
  18. <!-- =================================================================== -->
  19. <!-- Initialization target -->
  20. <!-- =================================================================== -->
  21. <target name="init">
  22. <tstamp/>
  23. <mkdir dir="tests"/>
  24. <property name="testDir" value="tests"/>
  25. <property name="foDir" value="."/>
  26. <path id="run-classpath">
  27. <fileset dir="../../../../../lib">
  28. <include name="*.jar"/>
  29. </fileset>
  30. <pathelement location="../../../../../build/fop.jar"/>
  31. </path>
  32. <taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop" classpathref="run-classpath"/>
  33. </target>
  34. <!-- =================================================================== -->
  35. <!-- Help on usage -->
  36. <!-- =================================================================== -->
  37. <target name="usage">
  38. <echo message="Use '-projecthelp' instead"/>
  39. </target>
  40. <!-- =================================================================== -->
  41. <!-- Produces new test files (function) -->
  42. <!-- =================================================================== -->
  43. <target name="newTestFiles">
  44. <fop format="${mimetype}" outdir="${outDir}" messagelevel="${msglevel}" relativebase="true" throwexceptions="false">
  45. <fileset dir=".">
  46. <include name="**/*.fo"/>
  47. </fileset>
  48. </fop>
  49. </target>
  50. <!-- =================================================================== -->
  51. <!-- Produces new test PDF files -->
  52. <!-- =================================================================== -->
  53. <target name="newPDF" depends="init" description="Creates a new set of PDF test files">
  54. <antcall target="newTestFiles">
  55. <param name="mimetype" value="application/pdf"/>
  56. <param name="msglevel" value="warn"/>
  57. <param name="outDir" value="${testDir}"/>
  58. </antcall>
  59. </target>
  60. <!-- =================================================================== -->
  61. <!-- Clean targets -->
  62. <!-- =================================================================== -->
  63. <target name="clean" depends="init">
  64. <delete dir="${testDir}"/>
  65. </target>
  66. </project>
  67. <!-- End of file -->