forked from pentaho/pentaho-kettle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
83 lines (68 loc) · 3.04 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
<project name="kettle-dbdialog" default="default" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
<description>
Kettle DBDialog build file
</description>
<import file="build-res/subfloor.xml" />
<tstamp prefix="start"/>
<tstamp>
<format property="compile.timestamp" pattern="yyyy-MM-dd HH.mm.ss" />
</tstamp>
<!-- Look for user-override properties file first -->
<property file="override.properties"/>
<!-- set global properties for this build -->
<property file="build.properties"/>
<!--=======================================================================
install-antcontrib (borrowed from subfloor.xml)
(Fetches and) installs ant-contrib tasks.
====================================================================-->
<target name="install-antcontrib" depends="antcontrib.download-check">
<taskdef resource="net/sf/antcontrib/antlib.xml">
<classpath>
<fileset dir="${user.home}/.subfloor/ant-contrib">
<include name="*.jar" />
</fileset>
</classpath>
</taskdef>
</target>
<!--=======================================================================
antcontrib.download-check (borrowed from subfloor.xml)
Fetches ant-contrib from sourceforge if it is not already present
====================================================================-->
<target name="antcontrib.download-check">
<condition property="antcontrib.available">
<and>
<available file="${user.home}/.subfloor/ant-contrib" />
<available classname="net.sf.antcontrib.logic.IfTask">
<classpath>
<fileset dir="${user.home}/.subfloor/ant-contrib">
<include name="*.jar" />
</fileset>
</classpath>
</available>
</and>
</condition>
<antcall target="antcontrib.download" />
</target>
<!--=======================================================================
antcontrib.download (borrowed from subfloor.xml)
Fetches ant-contrib from sourceforge
====================================================================-->
<target name="antcontrib.download" unless="antcontrib.available">
<mkdir dir="${user.home}/.subfloor/tmp" />
<get src="http://downloads.sourceforge.net/ant-contrib/ant-contrib-1.0b3-bin.zip"
dest="${user.home}/.subfloor/tmp/antcontrib.zip"
usetimestamp="true" />
<unzip src="${user.home}/.subfloor/tmp/antcontrib.zip" dest="${user.home}/.subfloor/tmp">
<patternset>
<include name="**/*.jar" />
</patternset>
</unzip>
<copy todir="${user.home}/.subfloor/ant-contrib">
<fileset dir="${user.home}/.subfloor/tmp/ant-contrib">
<include name="**/*.jar" />
</fileset>
</copy>
</target>
<target name="create-dot-classpath" depends="init,resolve,subfloor.create-dot-classpath"/>
<target name="default" depends="clean,init, resolve, dist" />
</project>