-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
127 lines (107 loc) · 4.79 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<project name="Lunar Tabs Pro" default="targets" basedir=".">
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="drivers" location="drivers"/>
<property name="freetts.jar" location="drivers/freetts.jar"/>
<property name="cmu_us_kal.jar" location="drivers/cmu_us_kal.jar"/>
<property name="cmulex.jar" location="drivers/cmulex.jar"/>
<property name="en_us.jar" location="drivers/en_us.jar"/>
<property name="sphinx4.jar" location="drivers/sphinx4.jar"/>
<property name="jsapi.jar" location="drivers/jsapi.jar"/>
<property name="WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar" location="drivers/WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar"/>
<property name="WSJ_8gau_13dCep_8kHz_31mel_200Hz_3500Hz.jar" location="drivers/WSJ_8gau_13dCep_8kHz_31mel_200Hz_3500Hz.jar"/>
<property name="TIDIGITS_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar" location="drivers/TIDIGITS_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar"/>
<property name="tags.jar" location="drivers/tags.jar"/>
<path id="project.path">
<pathelement location="${build}"/>
<pathelement location="${freetts.jar}"/>
<pathelement location="${cmu_us_kal.jar}"/>
<pathelement location="${cmulex.jar}"/>
<pathelement location="${en_us.jar}"/>
<pathelement location="${sphinx4.jar}"/>
<pathelement location="${jsapi.jar}"/>
<pathelement location="${WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar}"/>
<pathelement location="${WSJ_8gau_13dCep_8kHz_31mel_200Hz_3500Hz.jar}"/>
<pathelement location="${TIDIGITS_8gau_13dCep_16k_40mel_130Hz_6800Hz.jar}"/>
<pathelement location="${tags.jar}"/>
</path>
<!-- Print out a listing of the most important ant targets -->
<target name="targets">
<echo>
compile Compile the source code
test Compiles and tests the source code by running junit tests
run.gui Run the gui verion of the FAA Controller
javadoc Create javadoc of the source code
zip Create a zip and stores it in versions (for local use/not on subversion)
clean Delete all the compiled files
</echo>
</target>
<!-- A basic setup target -->
<target name="init">
<tstamp/>
<mkdir dir="${build}"/>
</target>
<!-- Compiles the source files and copies all relevant files to the build directory -->
<target name="compile" depends="init"
description="compile the source ">
<!--
<copy todir="${build}/gui">
<fileset dir="${resource}">
<include name="*"/>
</fileset>
</copy>
-->
<javac srcdir="${src}" classpathref="project.path" destdir="${build}" debug="true">
<compilerarg value="-Xlint:unchecked"/>
</javac>
<!--<copy file="${src}/speech/hello.gram"
todir="${build}/speech/helloworld/"/> -->
</target>
<!-- Here we compile the source and test it using junit -->
<target name="test" depends="compile">
<mkdir dir="${test}"/>
</target>
<!-- This is the ant task that runs the gui version of the faa controller -->
<target name="run.gui" depends="compile">
<java classname="gui.GUI" classpathref="project.path" fork="true" maxmemory="1028m">
</java>
</target>
<!-- Generates the javadoc for all the packages -->
<target name="javadoc" depends="compile">
<mkdir dir="${doc}/javadoc"/>
<javadoc destdir="${doc}/javadoc">
<classpath refid="project.path" />
<packageset dir="${src}" defaultexcludes="yes">
<include name="gui"/>
<include name="InstructionGenerator"/>
<include name="prateekAPI"/>
</packageset>
</javadoc>
</target>
<!-- Create a nice package of all the source files and ant build files -->
<target name="zip">
<input message="Enter the version number:" addproperty="version"/>
<antcall target="clean"/>
<mkdir dir="${dist}"/>
<copy todir="${dist}/src">
<fileset dir="${src}"/>
</copy>
<mkdir dir="${dist}/drivers"/>
<copy todir="${dist}/drivers">
<fileset dir="${drivers}"/>
</copy>
<copy todir="${dist}" file="build.xml"/>
<mkdir dir="${versions}/lunartabsproV${version}"/>
<zip destfile="${versions}/lunartabsproV${version}/lunartabsproV${version}.zip">
<zipfileset dir="${dist}" prefix="lunartabsproV${version}"/>
</zip>
<delete dir="${dist}"/>
</target>
<!-- Cleans your environment.. deletes all generated files -->
<target name="clean">
<delete dir="${build}"/>
<delete dir="${doc}/javadoc"/>
<delete dir="${test}"/>
</target>
</project>