forked from scala-club/jedit-elastic-tabstops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
98 lines (77 loc) · 3.28 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
90
91
92
93
94
95
96
97
98
<?xml version="1.0"?>
<!--
This is the standard build.xml file for building the ElasticTabstops plugin.
The 'dist' target compiles the plugin, generates documentation, and creates
the JAR file. Before running the 'dist' target, you will need to choose
whether to generate the documentation using one of these two targets:
To use this template for building your own plugin, make these changes:
- Change 'name' property for the <project> to the name of your plugin
- Change definition of 'jedit.install.dir' to point to the directory
containing jedit.jar
- If necessary, add any dependencies to the 'project.class.path' definition
- If necessary, change the list of files in the 'dist' target
-->
<project name="ElasticTabstops" default="dist" basedir=".">
<property file="build.properties"/>
<property file="../build.properties"/>
<property file="${user.home}/.build.properties"/>
<property file="${user.home}/build.properties"/>
<property name="jedit.install.dir" value="${user.home}/jEdit4.5/jEdit/build" />
<property name="jar.name" value="${ant.project.name}.jar"/>
<property name="docs-proc.target" value="xsltproc"/>
<property name="scala.home" value="/usr/share/scala"/>
<property name="scala-library.jar" value="${scala.home}/lib/scala-library.jar"/>
<property name="src.dir" value="."/>
<property name="build.dir" value="build"/>
<property name="install.dir" value=".."/>
<path id="project.class.path">
<pathelement location="${jedit.install.dir}/jedit.jar"/>
<pathelement location="${src.dir}"/>
<pathelement location="${scala-library.jar}"/>
<pathelement location="${jedit.install.dir}"/>
</path>
<target name="init">
<mkdir dir="${build.dir}"/>
<path id="build.classpath">
<pathelement location="${scala-library.jar}" />
<!--<pathelement location="${your.path}" />-->
<pathelement location="${build.dir}" />
</path>
<taskdef resource="scala/tools/ant/antlib.xml">
<classpath>
<pathelement location="${scala.home}/lib/scala-compiler.jar" />
<pathelement location="${scala-library.jar}" />
</classpath>
</taskdef>
</target>
<target name="compile" depends="init">
<scalac
srcdir="${src.dir}"
destdir="${build.dir}"
deprecation="on"
>
<classpath refid="project.class.path"/>
<include name="**/*.scala"/>
</scalac>
</target>
<target name="dist" depends="compile">
<mkdir dir="${install.dir}"/>
<jar jarfile="${install.dir}/${jar.name}">
<fileset dir="${build.dir}"/>
<fileset dir="${src.dir}">
<include name="actions.xml"/>
<include name="**/*.props"/>
<include name="**/*.gif"/>
<include name="**/*.html"/>
</fileset>
</jar>
</target>
<target name="clean">
<delete dir="${build.dir}"/>
<delete>
<fileset dir="." includes="users-guide.html"/>
<fileset dir="." includes="docbook-wrapper.xsl"/>
<fileset dir="." includes="**/*~"/>
</delete>
</target>
</project>