-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-helper.xml
154 lines (139 loc) · 13 KB
/
build-helper.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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<project>
<!-- =================================================================================
target: maven-install-swt
The Eclipse SWT library needed for this project does not automatically load
into the user's private Maven repository at ${user.home}/.m2. This task is
designed to overcome that shortcoming and unzip the Eclipse SWT library into
the correct location to enable successful builds.
ASSUMPTION: That the user's Maven repository is in the "home" directory
Unix/Linux/MacOS X: $HOME
Windows: %HOME%
================================================================================= -->
<target name="maven-install-swt" description="One-time install of Eclipse SWT library to user's Maven repository">
<unzip src="${basedir}/maven-eclipse-swt.zip"
dest="${user.home}/.m2/repository/org/eclipse" />
</target>
<!-- =================================================================================
target: create-distribution
Create the distributable zip archive to be expanded in the user's Kettle plugins
directory.
================================================================================= -->
<target name="create-base" description="Build installable distribution">
<zip destfile="${basedir}/target/spoon-plugins.zip">
<zipfileset dir="${basedir}/job/eclglobalvariables/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/eclglobalvariables" />
<zipfileset dir="${basedir}/job/eclglobalvariables/target" includes="eclglobalvariables.jar" prefix="jobentries/eclglobalvariables" />
<zipfileset dir="${basedir}/eclgui/target" includes="eclgui.jar" prefix="hpcc-common" />
<zipfileset dir="${basedir}/eclsalt/target" includes="eclsalt.jar" prefix="hpcc-common" />
<zipfileset dir="${basedir}/perspectives/eclresults/target" includes="eclresults.jar" prefix="spoon/eclresults" />
<zipfileset dir="${basedir}/perspectives/eclresults/src/main/resources/plugin" includes="plugin.xml" prefix="spoon/eclresults" />
<zipfileset dir="${basedir}/perspectives/eclconfig/target" includes="eclconfig.jar" prefix="spoon/eclconfig" />
<zipfileset dir="${basedir}/perspectives/eclconfig/src/main/resources/plugin" includes="plugin.xml" prefix="spoon/eclconfig" />
<zipfileset dir="${basedir}/job/ecldataset/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/ecldataset" />
<zipfileset dir="${basedir}/job/ecldataset/target" includes="ecldataset.jar" prefix="jobentries/ecldataset" />
<zipfileset dir="${basedir}/job/ecldedup/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/ecldedup" />
<zipfileset dir="${basedir}/job/ecldedup/target" includes="ecldedup.jar" prefix="jobentries/ecldedup" />
<zipfileset dir="${basedir}/job/ecldistribute/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/ecldistribute" />
<zipfileset dir="${basedir}/job/ecldistribute/target" includes="ecldistribute.jar" prefix="jobentries/ecldistribute" />
<zipfileset dir="${basedir}/job/eclerror/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/eclerror" />
<zipfileset dir="${basedir}/job/eclerror/target" includes="eclerror.jar" prefix="jobentries/eclerror" />
<zipfileset dir="${basedir}/job/eclexecute/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/eclexecute" />
<zipfileset dir="${basedir}/job/eclexecute/target" includes="eclexecute.jar" prefix="jobentries/eclexecute" />
<zipfileset dir="${basedir}/job/eclfilter/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/eclfilter" />
<zipfileset dir="${basedir}/job/eclfilter/target" includes="eclfilter.jar" prefix="jobentries/eclfilter" />
<zipfileset dir="${basedir}/job/eclgeneric/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/eclgeneric" />
<zipfileset dir="${basedir}/job/eclgeneric/target" includes="eclgeneric.jar" prefix="jobentries/eclgeneric" />
<zipfileset dir="${basedir}/job/eclgroup/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/eclgroup" />
<zipfileset dir="${basedir}/job/eclgroup/target" includes="eclgroup.jar" prefix="jobentries/eclgroup" />
<zipfileset dir="${basedir}/job/eclindex/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/eclindex" />
<zipfileset dir="${basedir}/job/eclindex/target" includes="eclindex.jar" prefix="jobentries/eclindex" />
<zipfileset dir="${basedir}/job/ecliterate/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/ecliterate" />
<zipfileset dir="${basedir}/job/ecliterate/target" includes="ecliterate.jar" prefix="jobentries/ecliterate" />
<zipfileset dir="${basedir}/job/ecljoin/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/ecljoin" />
<zipfileset dir="${basedir}/job/ecljoin/target" includes="ecljoin.jar" prefix="jobentries/ecljoin" />
<zipfileset dir="${basedir}/job/eclmergepaths/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/eclmergepaths" />
<zipfileset dir="${basedir}/job/eclmergepaths/target" includes="eclmergepaths.jar" prefix="jobentries/eclmergepaths" />
<zipfileset dir="${basedir}/job/ecloutput/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/ecloutput" />
<zipfileset dir="${basedir}/job/ecloutput/target" includes="ecloutput.jar" prefix="jobentries/ecloutput" />
<zipfileset dir="${basedir}/job/eclproject/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/eclproject" />
<zipfileset dir="${basedir}/job/eclproject/target" includes="eclproject.jar" prefix="jobentries/eclproject" />
<zipfileset dir="${basedir}/job/eclrollup/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/eclrollup" />
<zipfileset dir="${basedir}/job/eclrollup/target" includes="eclrollup.jar" prefix="jobentries/eclrollup" />
<zipfileset dir="${basedir}/job/eclsort/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/eclsort" />
<zipfileset dir="${basedir}/job/eclsort/target" includes="eclsort.jar" prefix="jobentries/eclsort" />
<zipfileset dir="${basedir}/job/eclsprayfile/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/eclsprayfile" />
<zipfileset dir="${basedir}/job/eclsprayfile/target" includes="eclsprayfile.jar" prefix="jobentries/eclsprayfile" />
<zipfileset dir="${basedir}/job/ecltable/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/ecltable" />
<zipfileset dir="${basedir}/job/ecltable/target" includes="ecltable.jar" prefix="jobentries/ecltable" />
<zipfileset dir="${basedir}/job/eclcount/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/eclcount" />
<zipfileset dir="${basedir}/job/eclcount/target" includes="eclcount.jar" prefix="jobentries/eclcount" />
<zipfileset dir="${basedir}/job/ecldespray/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/ecldespray" />
<zipfileset dir="${basedir}/job/ecldespray/target" includes="ecldespray.jar" prefix="jobentries/ecldespray" />
<zipfileset dir="${basedir}/job/ecllimit/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/ecllimit" />
<zipfileset dir="${basedir}/job/ecllimit/target" includes="ecllimit.jar" prefix="jobentries/ecllimit" />
<zipfileset dir="${basedir}/job/eclloop/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/eclloop" />
<zipfileset dir="${basedir}/job/eclloop/target" includes="eclloop.jar" prefix="jobentries/eclloop" />
<zipfileset dir="${basedir}/job/eclmerge/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/eclmerge" />
<zipfileset dir="${basedir}/job/eclmerge/target" includes="eclmerge.jar" prefix="jobentries/eclmerge" />
</zip>
</target>
<target name="create-ml">
<zip destfile="${basedir}/target/spoon-plugins-ml.zip">
<zipfileset dir="${basedir}/job-ml/eclmlassociate/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/eclmlassociate" />
<zipfileset dir="${basedir}/job-ml/eclmlassociate/target" includes="eclmlassociate.jar" prefix="jobentries/eclmlassociate" />
<zipfileset dir="${basedir}/job-ml/eclmlbuildclassify/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/eclmlbuildclassify" />
<zipfileset dir="${basedir}/job-ml/eclmlbuildclassify/target" includes="eclmlbuildclassify.jar" prefix="jobentries/eclmlbuildclassify" />
<zipfileset dir="${basedir}/job-ml/eclmlclassify/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/eclmlclassify" />
<zipfileset dir="${basedir}/job-ml/eclmlclassify/target" includes="eclmlclassify.jar" prefix="jobentries/eclmlclassify" />
<zipfileset dir="${basedir}/job-ml/eclmldiscretize/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/eclmldiscretize" />
<zipfileset dir="${basedir}/job-ml/eclmldiscretize/target" includes="eclmldiscretize.jar" prefix="jobentries/eclmldiscretize" />
<zipfileset dir="${basedir}/job-ml/eclmlfromfield/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/eclmlfromfield" />
<zipfileset dir="${basedir}/job-ml/eclmlfromfield/target" includes="eclmlfromfield.jar" prefix="jobentries/eclmlfromfield" />
<zipfileset dir="${basedir}/job-ml/eclmlkmeans/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/eclmlkmeans" />
<zipfileset dir="${basedir}/job-ml/eclmlkmeans/target" includes="eclmlkmeans.jar" prefix="jobentries/eclmlkmeans" />
<zipfileset dir="${basedir}/job-ml/eclmltofield/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/eclmltofield" />
<zipfileset dir="${basedir}/job-ml/eclmltofield/target" includes="eclmltofield.jar" prefix="jobentries/eclmltofield" />
</zip>
</target>
<target name="create-salt" >
<zip destfile="${basedir}/target/spoon-plugins-salt.zip">
<zipfileset dir="${basedir}/job-salt/saltdataprofiling/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/saltdataprofiling" />
<zipfileset dir="${basedir}/job-salt/saltdataprofiling/target" includes="saltdataprofiling.jar" prefix="jobentries/saltdataprofiling" />
<zipfileset dir="${basedir}/job-salt/salthygiene/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/salthygiene" />
<zipfileset dir="${basedir}/job-salt/salthygiene/target" includes="salthygiene.jar" prefix="jobentries/salthygiene" />
<zipfileset dir="${basedir}/job-salt/saltinternallinking/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/saltinternallinking" />
<zipfileset dir="${basedir}/job-salt/saltinternallinking/target" includes="saltinternallinking.jar" prefix="jobentries/saltinternallinking" />
<zipfileset dir="${basedir}/job-salt/saltconcept/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/saltconcept" />
<zipfileset dir="${basedir}/job-salt/saltconcept/target" includes="saltconcept.jar" prefix="jobentries/saltconcept" />
<zipfileset dir="${basedir}/job-salt/saltSpecificity/src/main/resources/plugin" includes="plugin.xml,*.png" prefix="jobentries/saltspecificity" />
<zipfileset dir="${basedir}/job-salt/saltSpecificity/target" includes="saltspecificity.jar" prefix="jobentries/saltspecificity" />
</zip>
</target>
<target name="create-distribution-salt" >
<zip destfile="${basedir}/target/spoon-plugins-distribution-salt.zip">
<zipgroupfileset dir="target" includes="spoon-plugins.zip" />
<zipgroupfileset dir="target" includes="spoon-plugins-salt.zip" />
<zipfileset dir="${basedir}/eclgui/src/main/resources/properties/salt" includes="libraryInclude.properties" prefix="hpcc-common/properties" />
</zip>
</target>
<target name="create-distribution-ml" >
<zip destfile="${basedir}/target/spoon-plugins-distribution-ml.zip">
<zipgroupfileset dir="target" includes="spoon-plugins.zip" />
<zipgroupfileset dir="target" includes="spoon-plugins-ml.zip" />
<zipfileset dir="${basedir}/eclgui/src/main/resources/properties/ml" includes="libraryInclude.properties" prefix="hpcc-common/properties" />
</zip>
</target>
<target name="create-distribution-full">
<zip destfile="${basedir}/target/spoon-plugins-distribution-full.zip">
<zipfileset dir="${basedir}/eclgui/src/main/resources/properties/full" includes="libraryInclude.properties" prefix="hpcc-common/properties" />
<zipgroupfileset dir="target" includes="spoon-plugins.zip" />
<zipgroupfileset dir="target" includes="spoon-plugins-ml.zip" />
<zipgroupfileset dir="target" includes="spoon-plugins-salt.zip" />
</zip>
</target>
<target name="create-distribution">
<zip destfile="${basedir}/target/spoon-plugins-distribution.zip">
<zipfileset dir="${basedir}/eclgui/src/main/resources/properties/nolib" includes="libraryInclude.properties" prefix="hpcc-common/properties" />
<zipgroupfileset dir="target" includes="spoon-plugins.zip" />
</zip>
</target>
</project>