-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
135 lines (110 loc) · 4.8 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?xml version="1.0" encoding="UTF-8"?>
<!--
Dynamo Pentaho Plugins is a project for combining Dynamo projects with Pentaho.
Copyright (C) 2011 Dynamo Business Intelligence Corporation
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option)
any later version approved by Dynamo Business Intelligence Corporation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-->
<project name="bi-pdi-luciddb" basedir="." default="package-both">
<property file="build.properties" />
<condition property="luciddb.ext" value=".zip" else="tar.bz2">
<os family="windows" />
</condition>
<condition property="luciddb.url" value="http://downloads.sf.net/luciddb/luciddb-bin-win32-0.9.3.zip">
<and>
<os family="windows" />
<equals arg1="${sun.arch.data.model}" arg2="32" />
</and>
</condition>
<condition property="luciddb.url" value="http://downloads.sf.net/luciddb/luciddb-bin-win64-0.9.3.zip">
<and>
<os family="windows" />
<equals arg1="${sun.arch.data.model}" arg2="64" />
</and>
</condition>
<condition property="luciddb.url" value="http://build.dynamobi.com/job/dy_dev_initbuild/label=lin32/lastSuccessfulBuild/artifact/luciddb/dist/luciddb.tar.bz2">
<and>
<os family="unix" />
<equals arg1="${sun.arch.data.model}" arg2="32" />
</and>
</condition>
<condition property="luciddb.url" value="http://build.dynamobi.com/job/dy_dev_initbuild/label=lin64/lastSuccessfulBuild/artifact/luciddb/dist/luciddb.tar.bz2">
<and>
<os family="unix" />
<equals arg1="${sun.arch.data.model}" arg2="64" />
</and>
</condition>
<condition property="luciddb.url" value="http://downloads.sf.net/luciddb/luciddb-bin-macos32-0.9.3.tar.bz2">
<os family="mac" />
</condition>
<property environment="env" />
<condition property="java_home" value="${env.JAVA_HOME}" else="${java.home}/../">
<not><equals arg1="${env.JAVA_HOME}" arg2="$${env.JAVA_HOME}" /></not>
</condition>
<target name="init">
<mkdir dir="remote_resources" />
</target>
<target name="clean">
<ant antfile="build.xml" target="clean-all" dir="bi" />
<ant antfile="build.xml" target="clean" dir="pdi" />
</target>
<target name="clean-resources" depends="clean">
<delete dir="remote_resources" />
</target>
<target name="check_lucid">
<available file="remote_resources/luciddb.${luciddb.ext}" type="file"
property="lucid.exists" />
</target>
<target name="fetch_lucid" depends="check_lucid" unless="lucid.exists">
<get src="${luciddb.url}" dest="remote_resources/luciddb.${luciddb.ext}"
usetimestamp="true" />
</target>
<target name="fetch_remote" depends="init,fetch_lucid">
<get src="http://build.dynamobi.com/job/dynamo_admin/lastSuccessfulBuild/artifact/flexsqladmin/adminui.war" dest="remote_resources/adminui.war" usetimestamp="true" />
<get src="http://build.dynamobi.com/job/dynamo_ws/lastSuccessfulBuild/artifact/dynamows-admin/target/adminws.war" dest="remote_resources/adminws.war" usetimestamp="true" />
</target>
<target name="package-bi" depends="fetch_remote">
<ant antfile="build.xml" dir="bi">
<property file="build.properties" />
<property file="bi/build.properties" />
</ant>
<ant antfile="build.xml" target="install" dir="bi">
<property file="build.properties" />
<property file="bi/build.properties" />
</ant>
<antcall target="finish" />
</target>
<target name="finish">
</target>
<target name="deploy-local-bi" depends="fetch_remote">
<ant antfile="build.xml" dir="bi">
<property file="build.properties" />
<property file="bi/build.properties" />
</ant>
<ant antfile="build.xml" target="install-local" dir="bi">
<property file="build.properties" />
<property file="bi/build.properties" />
</ant>
</target>
<target name="package-pdi" depends="fetch_remote">
<ant antfile="build.xml" dir="pdi">
<property file="build.properties" />
</ant>
</target>
<target name="deploy-local-pdi" depends="fetch_remote">
<ant antfile="build.xml" target="deploy-local" dir="pdi">
<property file="build.properties" />
</ant>
</target>
<target name="package-both" depends="package-bi,package-pdi" />
<target name="deploy-local-both" depends="deploy-local-bi,deploy-local-pdi" />
</project>