-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
89 lines (72 loc) · 2.31 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
<project name="jvifm" basedir="." default="build">
<property name="version" value="1.0c"/>
<property name="src" value="src" />
<property name="dist" value="dist" />
<property name="lib" value="lib" />
<path id="myclasspath">
<fileset dir="${lib}">
<include name="**/*.jar" />
</fileset>
<pathelement location="${dist}" />
</path>
<target name="build">
<javac classpathref="myclasspath" srcdir="${src}" destdir="${dist}" includeantruntime="false" />
<copy todir="${dist}">
<fileset dir="${src}">
<exclude name="**/*.java" />
<exclude name="**/*.swp" />
</fileset>
</copy>
</target>
<target name="jar" depends="build">
<jar jarfile="${lib}/jvifm.jar" basedir="${dist}" />
</target>
<target name="windows-dist" depends="jar">
<mkdir dir="jvifm" />
<copy todir="jvifm">
<fileset dir=".">
<include name="lib/**.*" />
<include name="lib/swt-win/**.*" />
<include name="bin/**.*" />
<include name="doc/**.*" />
<exclude name="lib/swt-linux/**" />
<exclude name="bin/*.sh" />
<exclude name="src/**" />
</fileset>
</copy>
<zip destfile="jvifm-win-bin-${version}.zip" basedir="jvifm">
</zip>
<delete dir="jvifm"></delete>
</target>
<target name="linux-dist" depends="jar">
<mkdir dir="jvifm" />
<copy todir="jvifm">
<fileset dir=".">
<include name="lib/**.*" />
<include name="lib/swt-linux/**.*" />
<include name="bin/**.*" />
<include name="doc/**.*" />
<exclude name="lib/swt-win/**" />
<exclude name="bin/*.bat" />
<exclude name="src/**" />
</fileset>
</copy>
<zip destfile="jvifm-linux-bin-${version}.zip" basedir="jvifm">
</zip>
<delete dir="jvifm"></delete>
</target>
<target name="src-dist" depends="jar">
<mkdir dir="jvifm" />
<copy todir="jvifm">
<fileset dir=".">
<include name="lib/**/*.*" />
<include name="src/**/*.*" />
<include name="doc/**.*" />
<exclude name="bin/**" />
</fileset>
</copy>
<zip destfile="jvifm-src-${version}.zip" basedir="jvifm">
</zip>
<delete dir="jvifm"></delete>
</target>
</project>