forked from sdp-2011/sdp-10
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
45 lines (37 loc) · 1.18 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
<project name="SDP10" basedir="." default="main">
<property name="lib.dir" value="lib"/>
<property name="src.dir" value="src"/>
<property name="bin.dir" value="bin"/>
<property name="mainclass" value="Commander"/>
<!-- Defining the CLASSPATH -->
<path id="compile.classpath">
<pathelement location="${bin.dir}" />
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${src.dir}"/>
</path>
<path id="run.classpath">
<pathelement location="${bin.dir}" />
<fileset dir="${lib.dir}">
<include name="**/twitter4j-core-2.1.10.jar" />
<include name="**/pccomm.jar" />
</fileset>
</path>
<target name="clean">
<delete dir="${bin.dir}"/>
</target>
<target name="compile" depends="clean">
<mkdir dir="${bin.dir}"/>
<javac srcdir="${src.dir}" destdir="${bin.dir}" includeantruntime="true" debug="true" debuglevel="lines,source">
<classpath refid="compile.classpath"/>
</javac>
</target>
<target name="run" depends="compile">
<java classname="Commander" fork="true">
<classpath refid="run.classpath"/>
</java>
</target>
<target name="clean-build" depends="clean, compile"/>
<target name="main" depends="clean-build"/>
</project>