1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="org.simantics.db.client" default="build.update.jar" basedir=".">
5 <property name="feature.temp.folder" value="${basedir}/feature.temp.folder"/>
6 <property name="feature.destination" value="${basedir}"/>
7 <property name="p2.build.repo" value="file:${buildDirectory}/buildRepo"/>
8 <condition property="p2.publish.parts" value="true" >
9 <istrue value="${p2.gathering}"/>
13 <target name="all.plugins" depends="init">
14 <ant antfile="build.xml" dir="../../bundles/org.simantics.compressions" target="${target}">
15 <property name="os" value="win32"/>
16 <property name="ws" value="win32"/>
17 <property name="arch" value="x86_64"/>
19 <ant antfile="build.xml" dir="../../bundles/org.simantics.backup" target="${target}">
20 <property name="os" value="win32"/>
21 <property name="ws" value="win32"/>
22 <property name="arch" value="x86_64"/>
24 <ant antfile="build.xml" dir="../../bundles/org.simantics.databoard" target="${target}">
25 <property name="os" value="win32"/>
26 <property name="ws" value="win32"/>
27 <property name="arch" value="x86_64"/>
29 <ant antfile="build.xml" dir="../../bundles/org.simantics.simulator.variable" target="${target}">
30 <property name="os" value="win32"/>
31 <property name="ws" value="win32"/>
32 <property name="arch" value="x86_64"/>
34 <ant antfile="build.xml" dir="../../bundles/org.simantics.graph" target="${target}">
35 <property name="os" value="win32"/>
36 <property name="ws" value="win32"/>
37 <property name="arch" value="x86_64"/>
39 <ant antfile="build.xml" dir="../../bundles/org.simantics.db" target="${target}">
40 <property name="os" value="win32"/>
41 <property name="ws" value="win32"/>
42 <property name="arch" value="x86_64"/>
44 <ant antfile="build.xml" dir="../../bundles/org.simantics.db.common" target="${target}">
45 <property name="os" value="win32"/>
46 <property name="ws" value="win32"/>
47 <property name="arch" value="x86_64"/>
49 <ant antfile="build.xml" dir="../../bundles/org.simantics.datatypes" target="${target}">
50 <property name="os" value="win32"/>
51 <property name="ws" value="win32"/>
52 <property name="arch" value="x86_64"/>
54 <ant antfile="build.xml" dir="../../bundles/org.simantics.graph.db" target="${target}">
55 <property name="os" value="win32"/>
56 <property name="ws" value="win32"/>
57 <property name="arch" value="x86_64"/>
59 <ant antfile="build.xml" dir="../../bundles/org.simantics.db.impl" target="${target}">
60 <property name="os" value="win32"/>
61 <property name="ws" value="win32"/>
62 <property name="arch" value="x86_64"/>
64 <ant antfile="build.xml" dir="../../bundles/org.simantics.fastlz" target="${target}">
65 <property name="os" value="win32"/>
66 <property name="ws" value="win32"/>
67 <property name="arch" value="x86_64"/>
69 <ant antfile="build.xml" dir="../../bundles/org.simantics.db.server" target="${target}">
70 <property name="os" value="win32"/>
71 <property name="ws" value="win32"/>
72 <property name="arch" value="x86_64"/>
74 <ant antfile="build.xml" dir="../../bundles/org.simantics.db.procore" target="${target}">
75 <property name="os" value="win32"/>
76 <property name="ws" value="win32"/>
77 <property name="arch" value="x86_64"/>
79 <ant antfile="build.xml" dir="../../bundles/org.simantics.acorn" target="${target}">
80 <property name="os" value="win32"/>
81 <property name="ws" value="win32"/>
82 <property name="arch" value="x86_64"/>
85 <target name="all.features" depends="init">
86 <ant antfile="build.xml" dir="../org.apache.lucene4.feature/" target="${target}"/>
88 <target name="update.feature" depends="init">
91 <target name="all.children" depends="init,all.features,all.plugins,update.feature">
94 <target name="children" if="include.children">
95 <antcall target="all.children"/>
98 <target name="build.jars" depends="init" description="Build all the jars for the feature: org.simantics.db.client.">
99 <antcall target="all.children">
100 <param name="target" value="build.jars"/>
104 <target name="build.sources" depends="init">
105 <antcall target="all.children">
106 <param name="target" value="build.sources"/>
110 <target name="build.zips" depends="init">
111 <antcall target="all.children">
112 <param name="target" value="build.zips"/>
116 <target name="build.update.jar" depends="init" description="Build the feature jar of: org.simantics.db.client for an update site.">
117 <antcall target="all.children">
118 <param name="target" value="build.update.jar"/>
120 <property name="feature.base" value="${feature.temp.folder}"/>
121 <delete dir="${feature.temp.folder}"/>
122 <mkdir dir="${feature.temp.folder}"/>
123 <mkdir dir="${feature.temp.folder}/features/org.simantics.db.client_1.2.5.201810081537"/>
124 <antcall target="gather.bin.parts" inheritAll="false">
125 <param name="feature.base" value="${feature.temp.folder}"/>
126 <param name="updateJar.omitRootfiles" value="true"/>
127 <param name="arch" value="*"/>
128 <param name="os" value="*"/>
129 <param name="ws" value="*"/>
130 <param name="nl" value="*"/>
132 <jar destfile="${feature.destination}/org.simantics.db.client_1.2.5.201810081537.jar" basedir="${feature.temp.folder}/features/org.simantics.db.client_1.2.5.201810081537"/>
133 <delete dir="${feature.temp.folder}"/>
136 <target name="publish.bin.parts" depends="init" if="p2.publish.parts">
137 <mkdir dir="${feature.temp.folder}/features/org.simantics.db.client_1.2.5.201810081537"/>
138 <copy todir="${feature.temp.folder}/features/org.simantics.db.client_1.2.5.201810081537" failonerror="true" overwrite="true">
139 <fileset dir="${basedir}">
140 <include name="feature.xml"/>
143 <eclipse.idReplacer featureFilePath="${feature.temp.folder}/features/org.simantics.db.client_1.2.5.201810081537/feature.xml" selfVersion="1.2.5.201810081537" featureIds="org.apache.lucene4:0.0.0,4.9.0.201810081537," pluginIds="org.simantics.db:0.0.0,1.1.0.201810081537,org.simantics.db.common:0.0.0,1.1.0.201810081537,org.simantics.db.procore:0.0.0,1.2.1.201810081537,org.simantics.fastlz:0.0.0,1.2.1.201810081537,org.simantics.db.impl:0.0.0,1.1.0.201810081537,org.simantics.db.server:0.0.0,1.4.6.201810081537,org.simantics.acorn:0.0.0,1.1.2.201810081537,org.simantics.databoard:0.0.0,0.6.6.201810081537,org.simantics.graph:0.0.0,1.1.15.201810081537,org.simantics.graph.db:0.0.0,1.1.9.201810081537,gnu.trove3:0.0.0,3.0.3,org.simantics.datatypes:0.0.0,1.0.0.201810081537,org.simantics.simulator.variable:0.0.0,1.0.0.201810081537,org.simantics.backup:0.0.0,1.0.0.201810081537,org.simantics.compressions:0.0.0,1.0.0.201810081537,"/>
144 <eclipse.gatherFeature
145 metadataRepository="${p2.build.repo}"
146 artifactRepository="${p2.build.repo}"
147 buildResultFolder="${feature.temp.folder}/features/org.simantics.db.client_1.2.5.201810081537"
148 baseDirectory="${basedir}"
152 <target name="gather.bin.parts" depends="init" if="feature.base">
153 <mkdir dir="${feature.base}/features/org.simantics.db.client_1.2.5.201810081537"/>
154 <antcall target="children">
155 <param name="target" value="gather.bin.parts"/>
156 <param name="destination.temp.folder" value="${feature.base}/plugins"/>
158 <copy todir="${feature.base}/features/org.simantics.db.client_1.2.5.201810081537" failonerror="true" overwrite="false">
159 <fileset dir="${basedir}">
160 <include name="feature.xml"/>
163 <eclipse.idReplacer featureFilePath="${feature.base}/features/org.simantics.db.client_1.2.5.201810081537/feature.xml" selfVersion="1.2.5.201810081537" featureIds="org.apache.lucene4:0.0.0,4.9.0.201810081537," pluginIds="org.simantics.db:0.0.0,1.1.0.201810081537,org.simantics.db.common:0.0.0,1.1.0.201810081537,org.simantics.db.procore:0.0.0,1.2.1.201810081537,org.simantics.fastlz:0.0.0,1.2.1.201810081537,org.simantics.db.impl:0.0.0,1.1.0.201810081537,org.simantics.db.server:0.0.0,1.4.6.201810081537,org.simantics.acorn:0.0.0,1.1.2.201810081537,org.simantics.databoard:0.0.0,0.6.6.201810081537,org.simantics.graph:0.0.0,1.1.15.201810081537,org.simantics.graph.db:0.0.0,1.1.9.201810081537,gnu.trove3:0.0.0,3.0.3,org.simantics.datatypes:0.0.0,1.0.0.201810081537,org.simantics.simulator.variable:0.0.0,1.0.0.201810081537,org.simantics.backup:0.0.0,1.0.0.201810081537,org.simantics.compressions:0.0.0,1.0.0.201810081537,"/>
164 <antcall target="rootFiles">
165 <param name="rootTarget" value="rootFiles${os}_${ws}_${arch}"/>
168 <target name="rootFiles" unless="updateJar.omitRootfiles">
169 <antcall target="${rootTarget}"/>
172 <target name="rootFileswin32_win32_x86_64">
174 <target name="rootFilesgroup_group_group">
175 <antcall target="rootFileswin32_win32_x86_64"/>
178 <target name="zip.distribution" depends="init" description="Create a zip containing all the plug-ins and features for the feature: org.simantics.db.client.">
179 <delete dir="${feature.temp.folder}"/>
180 <mkdir dir="${feature.temp.folder}"/>
181 <antcall target="gather.bin.parts">
182 <param name="include.children" value="true"/>
183 <param name="feature.base" value="${feature.temp.folder}"/>
184 <param name="arch" value="*"/>
185 <param name="os" value="*"/>
186 <param name="ws" value="*"/>
187 <param name="nl" value="*"/>
189 <zip destfile="${feature.destination}/org.simantics.db.client_1.2.5.201810081537.bin.dist.zip" basedir="${feature.temp.folder}" filesonly="false" whenempty="skip" update="false"/>
190 <delete dir="${feature.temp.folder}"/>
193 <target name="zip.sources" depends="init">
194 <delete dir="${feature.temp.folder}"/>
195 <mkdir dir="${feature.temp.folder}"/>
196 <antcall target="all.children">
197 <param name="include.children" value="true"/>
198 <param name="target" value="gather.sources"/>
199 <param name="destination.temp.folder" value="${feature.temp.folder}/plugins/org.simantics.db.client.source_1.2.5.201810081537/src"/>
201 <zip destfile="${feature.destination}/org.simantics.db.client_1.2.5.201810081537.src.zip" basedir="${feature.temp.folder}" filesonly="true" whenempty="skip" update="false"/>
202 <delete dir="${feature.temp.folder}"/>
205 <target name="zip.logs" depends="init">
206 <delete dir="${feature.temp.folder}"/>
207 <mkdir dir="${feature.temp.folder}"/>
208 <condition property="logExtension.param" value="logExtension" else="logExtension.param" >
209 <isset property="logExtension"/>
211 <antcall target="all.children" inheritAll="false">
212 <param name="include.children" value="true"/>
213 <param name="destination.temp.folder" value="${feature.temp.folder}/plugins"/>
214 <param name="${logExtension.param}" value="${logExtension}"/>
215 <param name="target" value="gather.logs"/>
217 <zip destfile="${feature.destination}/org.simantics.db.client_1.2.5.201810081537.log.zip" basedir="${feature.temp.folder}" filesonly="true" whenempty="skip" update="false"/>
218 <delete dir="${feature.temp.folder}"/>
221 <target name="clean" depends="init" description="Clean the feature: org.simantics.db.client of all the zips, jars and logs created.">
222 <delete file="${feature.destination}/org.simantics.db.client_1.2.5.201810081537.jar"/>
223 <delete file="${feature.destination}/org.simantics.db.client_1.2.5.201810081537.bin.dist.zip"/>
224 <delete file="${feature.destination}/org.simantics.db.client_1.2.5.201810081537.log.zip"/>
225 <delete file="${feature.destination}/org.simantics.db.client_1.2.5.201810081537.src.zip"/>
226 <delete dir="${feature.temp.folder}"/>
227 <antcall target="all.children">
228 <param name="target" value="clean"/>
232 <target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder.">
233 <eclipse.convertPath fileSystemPath="C:/Work/workspace/psaas/git/features/org.simantics.db.client.feature/" property="resourcePath"/>
234 <eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/>
235 <antcall target="all.children">
236 <param name="target" value="refresh"/>
239 <target name="gather.sources">
240 <antcall target="children">
241 <param name="destination.temp.folder" value="${feature.temp.folder}/plugins/org.simantics.db.client.source_1.2.5.201810081537/src"/>
242 <param name="target" value="gather.sources"/>
246 <target name="gather.logs" depends="init">
247 <mkdir dir="${feature.temp.folder}/plugins"/>
248 <property name="destination.temp.folder" value="${feature.temp.folder}/plugins"/>
249 <condition property="logExtension.param" value="logExtension" else="logExtension.param" >
250 <isset property="logExtension"/>
252 <antcall target="all.children" inheritAll="false">
253 <param name="${logExtension.param}" value="${logExtension}"/>
254 <param name="target" value="gather.logs"/>
255 <param name="destination.temp.folder" value="${feature.temp.folder}/plugins"/>