-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
65 lines (52 loc) · 1.76 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
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." name="epub-font-obfuscator">
<tstamp>
</tstamp>
<property name="srcdir" location="${basedir}/src/java" />
<property name="testdir" location="${basedir}/test/java"/>
<property name="dist" location="${basedir}/dist"/>
<property name="target.home" location="${basedir}/target"/>
<property name="classes.home" location="${target.home}/classes"/>
<property name="lib.home" location="${basedir}/lib"/>
<path id="classpath.base">
<pathelement path="${classes.home}"/>
<fileset dir="${lib.home}">
<include name="*.jar"/>
</fileset>
</path>
<target name="init">
<tstamp/>
</target>
<target name="compile" description="Compile the source">
<mkdir dir="${classes.home}"/>
<javac compiler="modern"
source="1.7"
target="1.7"
srcdir="${srcdir}"
destdir="${classes.home}">
<classpath refid="classpath.base"/>
</javac>
</target>
<pathconvert property="mf.classpath" pathsep=" ">
<path refid="classpath.base"/>
<mapper>
<chainedmapper>
<flattenmapper/>
<globmapper from="*.jar" to="lib/*.jar"/>
</chainedmapper>
</mapper>
</pathconvert>
<target name="jar" depends="compile" description="Create the jar file">
<jar destfile="${dist}/epub-font-obfuscator.jar" >
<zipgroupfileset dir="${lib.home}" includes="*.jar"/>
<fileset dir="${classes.home}" >
<include name="**.*" />
<include name="**/**.*" />
</fileset>
<manifest>
<attribute name="Main-Class" value="org.dita4publishers.epub.fontobfuscator.FontObfuscator"/>
<attribute name="Class-Path" value="${mf.classpath}"/>
</manifest>
</jar>
</target>
</project>