forked from gridgain/gridgain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
801 lines (731 loc) · 42.5 KB
/
pom.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2019 GridGain Systems, Inc. and Contributors.
Licensed under the GridGain Community Edition License (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.gridgain.com/products/software/community-edition/gridgain-community-edition-license
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!--
POM file.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.gridgain</groupId>
<artifactId>ignite-parent</artifactId>
<version>8.9.127-SNAPSHOT</version>
<relativePath>parent/pom.xml</relativePath>
</parent>
<artifactId>apache-ignite</artifactId>
<version>8.9.127-SNAPSHOT</version>
<packaging>pom</packaging>
<scm>
<url>https://gitbox.apache.org/repos/asf/ignite.git</url>
<connection>scm:git:https://gitbox.apache.org/repos/asf/ignite.git</connection>
<developerConnection>scm:git:https://gitbox.apache.org/repos/asf/ignite.git</developerConnection>
<tag>HEAD</tag>
</scm>
<modules>
<module>modules/apache-license-gen</module>
<module>parent</module>
<module>parent-internal</module>
<module>modules/tools</module>
<module>modules/core</module>
<module>modules/compress</module>
<module>modules/direct-io</module>
<module>modules/extdata/p2p</module>
<module>modules/extdata/uri</module>
<module>modules/extdata/platform</module>
<module>modules/clients</module>
<module>modules/spring</module>
<module>modules/spring-data-commons</module>
<module>modules/spring-data-2.2</module>
<module>modules/web</module>
<module>modules/aop</module>
<module>modules/urideploy</module>
<module>modules/indexing</module>
<module>modules/ssh</module>
<module>modules/rest-http</module>
<module>modules/jta</module>
<module>modules/aws</module>
<module>modules/log4j</module>
<module>modules/log4j2</module>
<module>modules/slf4j</module>
<module>modules/jcl</module>
<module>modules/codegen</module>
<module>modules/gce</module>
<module>modules/cloud</module>
<module>modules/mesos</module>
<module>modules/yarn</module>
<module>modules/zookeeper</module>
<module>modules/hibernate-core</module>
<module>modules/web/ignite-appserver-test</module>
<module>modules/web/ignite-websphere-test</module>
<module>modules/cassandra</module>
<module>modules/kubernetes</module>
<module>modules/sqlline</module>
<module>modules/ml</module>
<module>modules/ml/spark-model-parser</module>
<module>modules/ml/xgboost-model-parser</module>
<module>modules/ml/tensorflow-model-parser</module>
<module>modules/tensorflow</module>
<module>modules/opencensus</module>
<module>modules/h2</module>
<module>modules/hibernate-4.2</module>
<module>modules/hibernate-5.1</module>
<module>modules/hibernate-5.3</module>
<module>modules/geospatial</module>
<module>modules/schedule</module>
<module>modules/control-utility</module>
</modules>
<profiles>
<profile>
<id>all-java</id> <!-- used to update project versions and check all modules compilation -->
<modules> <!-- sorted alphabetically -->
<module>examples</module>
<module>examples-ml</module>
<module>modules/benchmarks</module>
<module>modules/compatibility</module>
<module>modules/geospatial</module>
<module>modules/hibernate-4.2</module>
<module>modules/hibernate-5.1</module>
<module>modules/hibernate-5.3</module>
<module>modules/numa-allocator</module>
<module>modules/schedule</module>
<module>modules/yardstick</module>
</modules>
</profile>
<profile>
<id>all-scala</id><!-- used to update project versions and check all modules compilation -->
<modules><!-- sorted alphabetically -->
<module>modules/ml/mleap-model-parser</module>
</modules>
</profile>
<profile>
<id>numa-allocator</id>
<modules>
<module>modules/numa-allocator</module>
</modules>
</profile>
<profile>
<id>test</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.5.2</version>
<inherited>false</inherited>
<executions>
<execution>
<id>test</id>
<phase>prepare-package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>assembly/test.xml</descriptor>
</descriptors>
<outputDirectory>${basedir}</outputDirectory>
<finalName>libs</finalName>
<appendAssemblyId>false</appendAssemblyId>
<runOnlyAtExecutionRoot>true</runOnlyAtExecutionRoot>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>compatibility</id>
<modules>
<module>modules/compatibility</module>
</modules>
</profile>
<profile>
<id>javadoc</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>timestamp-property</id>
<goals>
<goal>timestamp-property</goal>
</goals>
<phase>validate</phase>
<configuration>
<name>current.year</name>
<pattern>yyyy</pattern>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>core-javadoc</id>
<goals>
<goal>aggregate</goal>
</goals>
<phase>validate</phase>
<configuration>
<reportOutputDirectory>${basedir}/target/javadoc</reportOutputDirectory>
<destDir>core</destDir>
<stylesheetfile>${basedir}/assembly/docfiles/css/stylesheet.css</stylesheetfile>
<subpackages>org.apache.ignite -exclude org.apache.ignite.codegen:org.apache.ignite.examples:org.apache.ignite.internal:org.apache.ignite.schema:org.apache.ignite.tests:org.apache.ignite.tools:org.apache.ignite.util:org.apache.ignite.spi.discovery.tcp.messages:org.apache.ignite.spi.discovery.tcp.internal:org.apache.ignite.spi.communication.tcp.internal:org.apache.ignite.spi.discovery.zk.internal:org.apache.ignite.spi.deployment.uri.scanners:org.apache.ignite.spi.deployment.uri.tasks:org.apache.ignite.yardstick:org.apache.ignite.webtest</subpackages>
</configuration>
</execution>
</executions>
<configuration>
<bottom>
<![CDATA[
<table width="100%" border="0" cellspacing=0 cellpadding=0 style="padding: 5px">
<tr>
<td>
<table style="padding-left: 0; margin: 0">
<tbody style="padding: 0; margin: 0">
<tr style="padding: 0; margin: 0">
<td>
<a target=_blank href="http://www.gridgain.com/"><nobr>${current.year} Copyright © GridGain Systems</nobr></a>
</td>
</tr>
</tbody>
</table>
</td>
<td width="100%" align="right" valign="center">
<table border=0 cellspacing=0 cellpadding=0>
<tr>
<td>
<nobr>Follow us: </nobr>
</td>
<td style="padding-right: 5px">
<a class='img_link' target=twitter href='http://www.twitter.com/gridgain'>
<img border=0 align=absmiddle src='http://www.gridgain.com/images/twitter_bw.png' alt='Follow GridGain on Twitter' />
</a>
</td>
<td style="padding-right: 5px">
<a class='img_link' target=vimeo href='https://vimeo.com/apacheignite'>
<img border=0 align=absmiddle src='http://www.gridgain.com/images/vimeo_bw.png' alt='Follow GridGain on Vimeo' />
</a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" valign="top" align="left">
<table style="padding-left: 0; margin: 0">
<tbody style="padding: 0; margin: 0">
<tr style="padding: 0; margin: 0">
<td>
<b>GridGain In-Memory Computing Platform</b>
</td>
<td>:
ver. <strong>${project.version}</strong>
</td>
</tr>
<tr style="padding: 0; margin: 0">
<td>
<b>Release Date</b>
</td>
<td>:
${maven.build.timestamp}
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
]]>
</bottom>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.0.0</version>
<inherited>false</inherited>
<dependencies>
<dependency>
<groupId>org.gridgain</groupId>
<artifactId>ignite-tools</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>javadoc-postprocessing-new</id>
<goals>
<goal>run</goal>
</goals>
<phase>initialize</phase>
<configuration>
<target>
<copy todir="${basedir}/target/javadoc/core">
<fileset dir="assembly/docfiles">
<include name="img/**" />
<include name="*.js" />
</fileset>
</copy>
<taskdef name="doctask" classname="org.apache.ignite.tools.ant.beautifier.GridJavadocAntTask" />
<doctask css="dotted" dir="target/javadoc/core">
<include name="**/*.html" />
<exclude name="overview-frame.html" />
<exclude name="allclasses-frame.html" />
<exclude name="**/class-use/*" />
</doctask>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>licenses</id>
<build>
<plugins>
<plugin><!-- skipping generation of dependencies licenses
to keep clean /maven-shared-archive-resources/META-INF
to prevent license.txt moving to sources.zip -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId>
<executions>
<execution>
<id>ignite-dependencies</id>
<goals>
<goal>process</goal>
</goals>
<configuration>
<skip>true</skip>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.0.0</version>
<inherited>false</inherited>
<dependencies>
<dependency>
<groupId>org.gridgain</groupId>
<artifactId>ignite-tools</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>release-postprocessing</id>
<goals>
<goal>run</goal>
</goals>
<phase>initialize</phase>
<configuration>
<target name="release-postprocessing">
<property name="release.dir" value="${basedir}/target/release-package-${ignite.edition}"/>
<replaceregexp byline="true">
<regexp pattern="pushd "%~dp0"/\.\./\.\.(\s*&::.+)?" />
<substitution expression="pushd "%~dp0"/.." />
<fileset dir="${release.dir}">
<include name="bin/**/*.bat" />
</fileset>
</replaceregexp>
<replaceregexp byline="true">
<regexp pattern="IGNITE_HOME_TMP="\$\(dirname "\$\{IGNITE_HOME_TMP\}"\)"(\s*#.*)?" />
<substitution expression="" />
<fileset dir="${release.dir}">
<include name="bin/**/*.sh" />
</fileset>
</replaceregexp>
<replaceregexp byline="true">
<regexp pattern="set SCRIPTS_HOME=%IGNITE_HOME%\\bin(\s*&::.*)?" />
<substitution expression="set SCRIPTS_HOME=%IGNITE_HOME%\\\\bin" />
<fileset dir="${release.dir}">
<include name="bin/**/*.bat" />
</fileset>
</replaceregexp>
<replaceregexp byline="true">
<regexp pattern="SCRIPTS_HOME="\$\{IGNITE_HOME_TMP\}/bin"(\s*#.*)?" />
<substitution expression="SCRIPTS_HOME="$${IGNITE_HOME_TMP}/bin"" />
<fileset dir="${release.dir}">
<include name="bin/**/*.sh" />
</fileset>
</replaceregexp>
<replaceregexp byline="true">
<regexp pattern="\. "\$\{SCRIPTS_HOME\}"/include/build-classpath.sh(\s*#.*)?" />
<substitution expression="" />
<fileset dir="${release.dir}">
<include name="bin/**/*.sh" />
</fileset>
</replaceregexp>
<replaceregexp byline="true">
<regexp pattern="call "%SCRIPTS_HOME%\\include\\build-classpath.bat"(\s*&::.*)?" />
<substitution expression="" />
<fileset dir="${release.dir}">
<include name="bin/**/*.bat" />
</fileset>
</replaceregexp>
<replaceregexp byline="true">
<regexp pattern="ENABLE_ASSERTIONS=.*" />
<substitution expression="ENABLE_ASSERTIONS="0"" />
<fileset dir="${release.dir}">
<include name="bin/**/*.sh" />
</fileset>
</replaceregexp>
<replaceregexp byline="true">
<regexp pattern="ENABLE_ASSERTIONS=.*" />
<substitution expression="ENABLE_ASSERTIONS=0" />
<fileset dir="${release.dir}">
<include name="bin/**/*.bat" />
</fileset>
</replaceregexp>
<replaceregexp byline="true">
<regexp pattern="-DIGNITE_UPDATE_NOTIFIER=false" />
<substitution expression="" />
<fileset dir="${release.dir}">
<include name="bin/**/*.sh" />
<include name="bin/**/*.bat" />
</fileset>
</replaceregexp>
<replaceregexp file="${release.dir}/examples/pom.xml" byline="true">
<regexp pattern="to_be_replaced_by_ignite_version" />
<substitution expression="${project.version}" />
</replaceregexp>
<replaceregexp file="${release.dir}/examples-ml/pom.xml" byline="true">
<regexp pattern="to_be_replaced_by_ignite_version" />
<substitution expression="${project.version}" />
</replaceregexp>
<replaceregexp file="${release.dir}/benchmarks/sources/pom.xml" byline="true">
<regexp pattern="to_be_replaced_by_ignite_version" />
<substitution expression="${project.version}" />
</replaceregexp>
<chmod dir="${release.dir}" perm="755" includes="**/*.sh" />
<!--
Line ending bugfix for builds packaged in MS Windows machine to adjust Linux based
end-of-line characters for Linux shell scripts
-->
<fixcrlf srcdir="${release.dir}" eol="lf" eof="remove">
<include name="**/*.sh" />
</fixcrlf>
<available file="${release.dir}/platforms/cpp/configure.ac" property="cpp"/>
</target>
<exportAntProperties>true</exportAntProperties>
</configuration>
</execution>
<execution>
<id>release-cpp</id>
<goals>
<goal>run</goal>
</goals>
<phase>initialize</phase>
<configuration>
<target name="release-autotools" if="${cpp}">
<exec executable="libtoolize" dir="${release.dir}/platforms/cpp">
<arg value="--copy"/>
</exec>
<exec executable="aclocal" dir="${release.dir}/platforms/cpp"/>
<exec executable="autoheader" dir="${release.dir}/platforms/cpp"/>
<exec executable="automake" dir="${release.dir}/platforms/cpp">
<arg value="--add-missing"/>
<arg value="--copy"/>
</exec>
<exec executable="autoreconf" dir="${release.dir}/platforms/cpp"/>
<delete dir="${release.dir}/platforms/cpp/autom4te.cache" quiet="true"/>
</target>
</configuration>
</execution>
<execution>
<id>release-zip</id>
<goals>
<goal>run</goal>
</goals>
<phase>initialize</phase>
<configuration>
<target name="release-zip">
<zip destfile="${basedir}/target/bin/${ignite.edition}-${project.version}.zip" encoding="UTF-8">
<zipfileset dir="${release.dir}" prefix="${ignite.edition}-${project.version}" filemode="755">
<include name="**/*.sh" />
<include name="**/configure" />
<include name="**/install-sh" />
<include name="**/compile" />
<include name="**/missing" />
</zipfileset>
<zipfileset dir="${release.dir}" prefix="${ignite.edition}-${project.version}">
<exclude name="**/*.sh" />
<exclude name="**/configure" />
<exclude name="**/install-sh" />
<exclude name="**/compile" />
<exclude name="**/missing" />
</zipfileset>
</zip>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<inherited>false</inherited>
<executions>
<execution>
<id>ignite-dependencies</id>
<phase>validate</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>${basedir}/assembly/dependencies-${ignite.orig.edition}.xml</descriptor>
</descriptors>
<outputDirectory>${basedir}/target/release-package-${ignite.edition}</outputDirectory>
<finalName>libs</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</execution>
<execution>
<id>ignite-release</id>
<phase>validate</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>assembly/release-${ignite.orig.edition}.xml</descriptor>
</descriptors>
<finalName>release-package-${ignite.edition}</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>yardstick</id>
<modules>
<module>modules/yardstick</module>
</modules>
</profile>
<profile>
<id>benchmarks</id>
<modules>
<module>modules/benchmarks</module>
</modules>
</profile>
<profile>
<id>scala</id>
<activation>
<property><name>!scala-2.10</name></property>
</activation>
<modules>
<module>modules/ml/mleap-model-parser</module>
</modules>
</profile>
<profile>
<id>ignored-tests</id>
<modules>
<module>modules/ignored-tests</module>
</modules>
</profile>
<profile>
<id>examples</id>
<modules>
<module>examples</module>
<module>examples-ml</module>
</modules>
</profile>
<profile>
<id>update-versions</id>
<!-- updates dotnet & cpp versions -->
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>update-versions</id>
<goals>
<goal>run</goal>
</goals>
<phase>validate</phase>
<configuration>
<target>
<script language="javascript">
function setClientVersion(ggVer, clientVer) {
var p = project.getProperty(ggVer);
var digitVer = /\d+\.\d+\.\d+/.exec(p);
if (digitVer != null)
{
// Date of the last major release
var startDate = new Date(new Date().getFullYear(),0,1);
// Number of hours since the last major release
var buildNum = Math.round((new Date() - startDate)/(3600*1000));
var ver = digitVer[0] + "." + buildNum;
project.setProperty(clientVer, ver);
}
else
project.setProperty(clientVer, p);
}
function fix(dest, source) {
project.setProperty(dest, project.getProperty(source).replace("-SNAPSHOT",
""));
}
fix('ignite.version.fixed', 'project.version');
fix('new.ignite.version.fixed', 'new.ignite.version');
setClientVersion('ignite.version.fixed', 'old.client.version');
setClientVersion('new.ignite.version.fixed', 'new.client.version');
</script>
<echo message="Update ignite.version in .NET" />
<echo message="${new.client.version}" />
<replaceregexp byline="true" encoding="UTF-8">
<regexp pattern="(\[assembly:\s*Assembly\w*Version\w*\(")\d+\.\d+\.\d+(\.\d+)?("\)\])" />
<substitution expression="\1${new.client.version}\3" />
<fileset dir="${basedir}/">
<include name="**/SharedAssemblyInfo.cs" />
</fileset>
</replaceregexp>
<replaceregexp byline="true" encoding="UTF-8">
<regexp pattern="(\[assembly:\s*AssemblyInformationalVersion\w*\(").*?("\)\])" />
<substitution expression="\1${new.ignite.version.fixed}\2" />
<fileset dir="${basedir}/">
<include name="**/SharedAssemblyInfo.cs" />
</fileset>
</replaceregexp>
<echo message="Update ignite.version in C++" />
<replaceregexp byline="true" encoding="UTF-8">
<regexp pattern="(AC_INIT.+\[)\d+\.\d+\.\d+.*?(\].+)" />
<substitution expression="\1${new.client.version}\2" />
<fileset dir="${basedir}/">
<include name="**/configure.ac" />
<include name="**/configure.acrel" />
</fileset>
</replaceregexp>
<replaceregexp byline="true" encoding="UTF-8">
<regexp pattern="(project\(Ignite.C\+\+ VERSION )\d+\.\d+\.\d+\.\d+\)" />
<substitution expression="\1${new.client.version}\)" />
<fileset dir="${basedir}/">
<include name="**/CMakeLists.txt" />
</fileset>
</replaceregexp>
<replaceregexp byline="true" encoding="UTF-8">
<regexp pattern="(Version=.+)\d+\.\d+\.\d+\.\d+(.+)" />
<substitution expression="\1${new.client.version}\2" />
<fileset dir="${basedir}/">
<include name="**/*.wxs" />
</fileset>
</replaceregexp>
<replaceregexp byline="true" encoding="UTF-8">
<regexp pattern="(define GG_VERSION_STR_WIN ")\d+\.\d+\.\d+(\.\d+)?(")" />
<substitution expression="\1${new.client.version}\3" />
<fileset dir="${basedir}/">
<include name="**/resource.h" />
</fileset>
</replaceregexp>
<replaceregexp byline="true" encoding="UTF-16">
<regexp pattern="(Version", ")\d+\.\d+\.\d+\.\d+(")" />
<substitution expression="\1${new.client.version}\2" />
<fileset dir="${basedir}/">
<include name="**/Resource.rc" />
</fileset>
</replaceregexp>
<script language="javascript">
function setBinVersion(clientVer, binVer) {
var p = project.getProperty(clientVer).replace(".", ",");
if (p.split(',').length == 3)
project.setProperty(binVer, p + ',0');
else
project.setProperty(binVer, p);
}
setBinVersion('old.client.version', 'old.bin.version');
setBinVersion('new.client.version', 'new.bin.version');
</script>
<replaceregexp byline="true" encoding="UTF-8">
<regexp pattern="(define GG_VERSION_BIN_WIN )\d,\d,\d,\d" />
<substitution expression="\1${new.bin.version}" />
<fileset dir="${basedir}/">
<include name="**/resource.h" />
</fileset>
</replaceregexp>
<replaceregexp byline="true" encoding="UTF-16">
<regexp pattern="(VERSION )\d,\d,\d,\d" />
<substitution expression="\1${new.bin.version}" />
<fileset dir="${basedir}/">
<include name="**/Resource.rc" />
</fileset>
</replaceregexp>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<executions>
<execution>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
<configuration>
<filesets>
<fileset>
<directory>libs</directory>
</fileset>
</filesets>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>