-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
113 lines (99 loc) · 3.95 KB
/
build.xml
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="dist" name="epub2pdf">
<property name="epub2pdf.version" value="0.5"/>
<path id="compile.classpath">
<fileset dir="lib">
<include name="batik-css.jar"/>
<include name="batik-util.jar"/>
<include name="commons-lang-2.4.jar"/>
<include name="iText.jar"/>
<include name="resolver.jar"/>
<include name="sac.jar"/>
<include name="xercesImpl.jar"/>
</fileset>
</path>
<target name="clean-compile">
<delete dir="build" />
</target>
<target name="compile" depends="clean-compile">
<mkdir dir="build"/>
<javac
srcdir="src"
destdir="build"
source="1.6"
target="1.6"
debug="off"
classpathref="compile.classpath">
</javac>
</target>
<target name="clean" depends="clean-compile">
<delete dir="dist/epub2pdf"/>
</target>
<target name="init-dist" depends="clean">
<copy todir="dist/epub2pdf">
<fileset dir="tmpl">
<include name="epub2pdf.*"/>
<include name="COPYING.epub2pdf"/>
<include name="README.epub2pdf"/>
</fileset>
</copy>
<mkdir dir="dist/epub2pdf/lib"/>
<copy todir="dist/epub2pdf/lib" flatten="true">
<path refid="compile.classpath"/>
</copy>
<mkdir dir="dist/epub2pdf/lib/fonts"/>
<copy todir="dist/epub2pdf/etc">
<fileset dir="etc">
<include name="xhtml/*"/>
</fileset>
</copy>
</target>
<target name="jar" depends="compile">
<jar destfile="dist/epub2pdf/epub2pdf.jar" index="true">
<fileset dir="build">
<include name="com/amphisoft/epub/**" />
<include name="com/amphisoft/epub2pdf/**" />
<include name="com/amphisoft/logging/**" />
<include name="com/amphisoft/pdf/**" />
<include name="com/amphisoft/util/**" />
<include name="org/w3c/dom/**" />
</fileset>
<manifest>
<attribute name="Main-Class" value="com.amphisoft.epub2pdf.Epub2Pdf"/>
<attribute name="Class-Path" value="lib/batik-css.jar lib/batik-util.jar lib/commons-lang-2.4.jar lib/iText.jar lib/resolver.jar lib/sac.jar lib/xercesImpl.jar"/>
</manifest>
<indexjars>
<path refid="compile.classpath"/>
</indexjars>
</jar>
</target>
<target name="dist-zip">
<zip destfile="dist/epub2pdf-${epub2pdf.version}.zip">
<fileset dir="dist">
<include name="epub2pdf/**" />
</fileset>
</zip>
</target>
<target name="dist" depends="init-dist,jar,dist-zip">
</target>
<target name="umldoc">
<javadoc sourcepath="src" classpathref="compile.classpath" packagenames="com.*,org.*" destdir="dist/umldoc" private="true">
<link href="http://www.jgrapht.org/javadoc" />
<doclet name="org.umlgraph.doclet.UmlGraphDoc" path="lib/UmlGraph.jar">
<param name="-collapsible"/>
<param name="-enumerations" />
<param name="-enumconstants" />
<param name="-inferdep" />
<param name="-inferdepvis" value="private" />
<param name="-inferrel" />
<param name="-inferreltype" value="has"/>
<param name="-collpackages" value="java.util.*" />
<param name="-hide" value="(java.*|javax.*|org.w3c.*)" />
<param name="-qualify" />
<param name="-postfixpackage" />
<param name="-nodesep" value="0.12" />
<param name="-ranksep" value="0.2" />
</doclet>
</javadoc>
</target>
</project>