-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.xml
49 lines (42 loc) · 1.64 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
<?xml version="1.0" encoding="ISO-8859-1" ?>
<project name="Jsoup Kettle Plugin" default="compile" basedir=".">
<!-- specific directory -->
<property name="src.dir" value="${basedir}/src/"/>
<property name="build.dir" value="${basedir}/build/"/>
<property name="lib.dir" value="${basedir}/lib/"/>
<property name="libkettle.dir" value="${basedir}/../../../lib/"/>
<property name="libswt.dir" value="${basedir}/../../../libswt/"/>
<!-- Load Environment specific properties from properties file -->
<property file="build.properties"/>
<!-- Java Classpath -->
<path id="local.class.path">
<fileset dir="${lib.dir}" includes="*.jar"/>
<fileset dir="${libkettle.dir}" includes="*.jar"/>
<fileset dir="${libswt.dir}" includes="*.jar *.zip"/>
<fileset dir="${libswt.dir}/win64/" includes="*.jar *.zip"/>
</path>
<!-- Clean output dirs -->
<target name="clean" description="clean all generated files">
<delete includeemptydirs="true">
<fileset dir="${build.dir}" includes="**/*" />
</delete>
<delete includeemptydirs="true">
<fileset dir="${basedir}" includes="*.jar" />
</delete>
</target>
<!-- Compile Java files -->
<target name="compile" description="Compile the application">
<mkdir dir="${build.dir}"/>
<javac includeAntRuntime="false" destdir="${build.dir}" debug="true">
<include name="**/*.java"/>
<classpath>
<path refid="local.class.path"/>
</classpath>
<src path="${src.dir}"/>
</javac>
<copy todir="${build.dir}">
<fileset dir="${src.dir}" includes="**/*.properties"/>
</copy>
<jar destfile="kettle-jsoup.jar" basedir="${build.dir}" />
</target>
</project>