aboutsummaryrefslogtreecommitdiffstats
path: root/src/documentation/content/xdocs/anttask.xml
blob: ba2b2a25c837706a2a3d3aed0e8e838761bc4a29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?xml version="1.0" standalone="no"?>
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.1//EN"
    "http://cvs.apache.org/viewcvs.cgi/*checkout*/xml-forrest/src/resources/schema/dtd/document-v11.dtd">

<document>
  <header>
    <title>Ant task</title>
  </header>
  <body>
    <p>
    FOP has also an ANT task for integration into your build process.
    </p>  
    <section><title>Parameter</title>
    </section>
    <section>
    <title>Examples</title>
    <p>
    
    </p>
    <source><![CDATA[
  <target name="examples" depends="package" description="Generates example PDF files">
    <taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop"
             classpathref="libs-run-classpath"/>
    <mkdir dir="${build.examples.dir}"/>
    <fop format="${build.property.examples.mime.type}" outdir="${build.examples.dir}"
         messagelevel="debug" basedir="${fo.examples.dir}">
      <fileset dir="${fo.examples.dir}">
        <include name="**/*.fo"/>
      </fileset>
    </fop>
  </target>
  ]]></source>
      <p>
      See the full text of the <link
      href="http://archives.apache.org/eyebrowse/ReadMsg?listName=fop-dev@xml.apache.org&amp;msgNo=4509">announcement</link>.
      </p>
    </section>
    </body>
</document>