-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.xml
58 lines (51 loc) · 2.08 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
<project name="sfntly" default="dist">
<import file="common.xml" />
<import file="javadoc.xml" />
<target name="compile-test" depends="compile">
<mkdir dir="${classes-test.dir}" />
<javac srcdir="${test.dir}" destdir="${classes-test.dir}" includeantruntime="false">
<classpath>
<fileset dir="${lib.dir}" includes="**/*.jar"/>
<pathelement location="${classes.dir}" />
</classpath>
</javac>
</target>
<target name="test" depends="compile-test">
<mkdir dir="${report-test.dir}" />
<junit printsummary="true" fork="yes">
<classpath>
<fileset dir="${lib.dir}" includes="**/*.jar"/>
<pathelement location="${classes.dir}" />
<pathelement location="${classes-test.dir}" />
</classpath>
<formatter type="xml" usefile="true" />
<batchtest fork="yes" todir="${report-test.dir}">
<fileset dir="${test.dir}">
<include name="**/*Test*.java"/>
<exclude name="**/TestFont.java" />
<exclude name="**/TestFontUtils.java" />
<exclude name="**/TestUtils.java" />
</fileset>
</batchtest>
</junit>
</target>
<target name="jar" depends="compile">
<antcall target="sfntly-jar" />
</target>
<target name="src-jar">
<mkdir dir="${dist_src.dir}" />
<jar destfile="${dist_src.dir}/${ant.project.name}-src.jar"
basedir="${src.dir}"
excludes="com/google/typography/font/tools/**,com/google/typography/font/sfntly/sample/**" />
</target>
<target name="dist" depends="compile">
<antcall target="jar" />
<antcall target="src-jar" />
<antcall target="doc-jar" />
<ant inheritAll="false" dir="${src.dir}/com/google/typography/font/sfntly/sample" />
<ant inheritAll="false" dir="${src.dir}/com/google/typography/font/tools/conversion" />
<ant inheritAll="false" dir="${src.dir}/com/google/typography/font/tools/fontinfo" />
<ant inheritAll="false" dir="${src.dir}/com/google/typography/font/tools/sfnttool" />
<ant inheritAll="false" dir="${src.dir}/com/google/typography/font/tools/subsetter" />
</target>
</project>