blob: 999e7bfb6770c38d920fba368bfec8abe8910656 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
<?xml version="1.0"?>
<!-- ======================================================================= -->
<!-- JBoss documentation build file -->
<!-- ======================================================================= -->
<project name="FOPDocs" default="docs" basedir="./">
<target name="init">
<property name="Name" value="FOPDocs"/>
<property name="name" value="fopdocs"/>
<property name="version" value="0.1"/>
<property name="lib.dir" value="${basedir}/lib"/>
<taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop"/>
</target>
<!-- =================================================================== -->
<!-- Generate a help screen -->
<!-- =================================================================== -->
<target name="help" depends="init">
<echo message="${name}-${version} build file, available targets:" />
<echo message="------------------------------------------------------------" />
<echo message="main : Compile and prepare deployment directory. " />
<echo message="pdf : Compile and prepare pdf user docs. "/>
<echo message="clean : Clean deployment and distribution. " />
<echo message="------------------------------------------------------------" />
<echo message=" USAGE: build <target> " />
</target>
<!-- =================================================================== -->
<!-- Prepares the build directory -->
<!-- =================================================================== -->
<target name="prepare" depends="init">
</target>
<!-- =================================================================== -->
<!-- Generates the pdf documentation -->
<!-- =================================================================== -->
<target name="pdf" depends="prepare">
<echo message="Building pdf documentation. Please wait ..."/>
<delete file="fop.fo"/>
<style basedir="./"
destdir="./"
style="docbook/fo/docbook.xsl"
extension=".fo"
includes="fop.xml"/>
<fop fofile="fop.fo" pdffile="fop.pdf"/>
<!-- <delete file="fop.fo"/>-->
</target>
<!-- =================================================================== -->
<!-- Generates pdf and html documentation -->
<!-- =================================================================== -->
<target name="docs" depends="pdf"/>
<!-- =================================================================== -->
<!-- Cleans up generated stuff -->
<!-- =================================================================== -->
<target name="clean" depends="init">
<delete file="fop.fo"/>
<delete file="fop.pdf"/>
</target>
</project>
|