-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
42 lines (37 loc) · 1.68 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
<project name="ExternalFinder plugin for OmegaT" default="dist">
<property name="version" value="0.9.1" />
<property name="javac.source" value="1.5" />
<property name="javac.target" value="1.5" />
<property name="encoding" value="UTF-8" />
<target name="clean">
<delete dir="build" />
<delete dir="dist" />
</target>
<target name="build" depends="clean">
<mkdir dir="build/stub-classes" />
<javac destdir="build/stub-classes" source="${javac.source}" target="${javac.target}" encoding="${encoding}">
<src path="src-stubs" />
</javac>
<mkdir dir="build/classes" />
<javac destdir="build/classes" source="${javac.source}" target="${javac.target}" encoding="${encoding}">
<src path="src" />
<classpath>
<pathelement path="build/stub-classes" />
</classpath>
</javac>
<copy todir="build/classes">
<fileset dir="src" excludes="**/*.java" />
</copy>
</target>
<target name="jar" depends="build">
<jar jarfile="build/OmegaT-plugin-ExternalFinder.jar" basedir="build/classes" manifest="MANIFEST.MF" />
<mkdir dir="dist" />
<zip destfile="dist/OmegaT-plugin-ExternalFinder_${version}.zip">
<fileset dir="build" includes="*.jar" />
<fileset dir="." includes="README.md, LICENSE, finder.xml" />
</zip>
<zip destfile="dist/OmegaT-plugin-ExternalFinder_${version}-src.zip">
<fileset dir="." excludes="lib/**, build/**, dist/**, .settings/**, classes/**, nbproject/private/**" />
</zip>
</target>
</project>