/
build-framework.xml
36 lines (30 loc) · 1.05 KB
/
build-framework.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
<project name="SocScore.framework" basedir="." default="clean">
<description>
ANT build file which generates JARs for the SocScore framework library.
</description>
<property name="src" value="${basedir}/src/com/SocScore/framework" />
<property name="build" value="${basedir}/build" />
<property name="tmp" value="${build}/tmp" />
<property name="dist" value="${build}/lib" />
<path id="class.path">
<fileset dir="lib">
<include name="XStream/*.jar" />
</fileset>
</path>
<target name="init">
<mkdir dir="${build}" />
</target>
<target name="compile" depends="init">
<mkdir dir="${tmp}" />
<javac srcdir="${src}" destdir="${tmp}">
<classpath refid="class.path" />
</javac>
</target>
<target name="dist" depends="compile">
<mkdir dir="${dist}" />
<jar jarfile="${dist}/socscore-framework.jar" basedir="${tmp}"/>
</target>
<target name="clean" depends="dist">
<delete dir="${tmp}" />
</target>
</project>