-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
58 lines (46 loc) · 1.47 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
<project name="Vimulator" default="dist" basedir=".">
<property name="src.dir" value="."/>
<property name="build.dir" value="build"/>
<!-- can be bent to point at the Plugin jars directory instead -->
<!--<property name="install.dir" value="/home/niels/.isabelle/Isabelle2021/jedit/jars/"/>-->
<property name="install.dir" value="install"/>
<!-- Replace this with the actual path, this is the installation path for the apt install -->
<property name="jedit.install.dir" value="/usr/share/jEdit"/>
<path id="project.class.path">
<pathelement location="${jedit.install.dir}/jedit.jar"/>
</path>
<target name="init">
<mkdir dir="${build.dir}"/>
<mkdir dir="${src.dir}"/>
</target>
<target name="compile" depends="init">
<javac
srcdir="${src.dir}"
destdir="${build.dir}"
debug="on"
deprecation="on"
includeJavaRuntime="yes"
excludes="bin/**"
>
<classpath refid="project.class.path"/>
</javac>
</target>
<target name="dist" depends="compile">
<mkdir dir="${install.dir}"/>
<jar jarfile="${install.dir}/Vimulator.jar">
<fileset dir="${build.dir}"/>
<fileset dir="${src.dir}">
<include name="actions.xml"/>
<include name="**/*.props"/>
<exclude name="bin/**"/>
</fileset>
</jar>
</target>
<target name="clean">
<delete dir="${build.dir}"/>
<delete>
<fileset dir="." includes="**/*~" defaultexcludes="no"/>
<fileset dir="." includes="**/*.class"/>
</delete>
</target>
</project>