forked from akshath/SocketTest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
40 lines (34 loc) · 1.1 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
<project name="SocketTest.Project" default="jar" basedir=".">
<property name="app.name" value="SocketTest" />
<property name="build.dir" value="build/classes" />
<target name="compile">
<mkdir dir="${build.dir}"/>
<javac srcdir="src/" destdir="${build.dir}" optimize="on" debug="off">
<include name="**/*.java"/>
</javac>
<copy todir="${build.dir}/" overwrite="yes">
<fileset dir="src/">
<include name="*.txt"/>
</fileset>
</copy>
<copy todir="${build.dir}/icons" overwrite="yes">
<fileset dir="src/icons">
<include name="*.gif"/>
</fileset>
</copy>
</target>
<target name="jar" depends="compile">
<mkdir dir="dist"/>
<jar jarfile="dist/${app.name}.jar"
basedir="${build.dir}" includes="**" manifest="manifest.mf">
</jar>
</target>
<target name="run" depends="jar">
<java classname="net.sf.sockettest.SocketTest" fork="true">
<classpath>
<pathelement location="dist/${app.name}.jar"/>
<pathelement path="${java.class.path}"/>
</classpath>
</java>
</target>
</project>