-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
45 lines (37 loc) · 1.24 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
<project name="p2p-sync" default="dist" basedir=".">
<property name="src" location="src" />
<property name="lib" location="lib" />
<property name="build" location="build" />
<property name="dist" location="dist" />
<property name="res" location="res" />
<property name="log4j" value="log4j.properties" />
<property name="settings" value="settings.properties" />
<target name="init">
<mkdir dir="${build}" />
</target>
<target name="compile" depends="init" description="compile the source ">
<javac destdir="${build}">
<src path="${src}" />
<include name="**" />
<include name="**/.properties" />
<classpath>
<fileset dir="${lib}">
<include name="**.*jar" />
</fileset>
</classpath>
</javac>
</target>
<target name="dist" depends="compile" description="generate the distribution">
<copy file="${lib}/${log4j}" tofile="${dist}/${log4j}" />
<copy file="${settings}" tofile="${dist}/${settings}" />
<copy todir="${dist}/lib">
<fileset dir="${lib}" />
</copy>
<mkdir dir="${dist}" />
<jar jarfile="${dist}/taskr.jar" basedir="${build}" manifest="${res}/manifest.mf" />
</target>
<target name="clean" description="clean up">
<delete dir="${build}" />
<delete dir="${dist}" />
</target>
</project>