This repository has been archived by the owner on Jan 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
update-version.xml
54 lines (45 loc) · 1.91 KB
/
update-version.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
<project name="update-version" basedir="." default="update-version">
<property name="old.mvn.version" value="9.11.0-SNAPSHOT" />
<property name="new.mvn.version" value="9.12.0-SNAPSHOT" />
<property name="old.pde.version" value="9.11.0.qualifier" />
<property name="new.pde.version" value="9.12.0.qualifier" />
<property name="old.pde.requirebundle.version" value="9.11.0" />
<property name="new.pde.requirebundle.version" value="9.12.0" />
<!-- =================================
target: update-version
================================= -->
<target name="update-version">
<!-- pom.xml - version -->
<replaceregexp byline="true">
<regexp pattern="<version>${old.mvn.version}</version>" />
<substitution expression="<version>${new.mvn.version}</version>" />
<fileset dir=".">
<include name="**/*pom.xml" />
</fileset>
</replaceregexp>
<!-- MANIFEST.MF - Bundle-Version -->
<replaceregexp byline="true">
<regexp pattern="Bundle-Version: ${old.pde.version}" />
<substitution expression="Bundle-Version: ${new.pde.version}" />
<fileset dir=".">
<include name="**/META-INF/MANIFEST.MF" />
</fileset>
</replaceregexp>
<!-- MANIFEST.MF - Require-Bundle -->
<replaceregexp>
<regexp pattern="org.slizaa.([^;]*);bundle-version="${old.pde.requirebundle.version}";" />
<substitution expression="org.slizaa.\1;bundle-version="${new.pde.requirebundle.version}";" />
<fileset dir=".">
<include name="**/META-INF/MANIFEST.MF" />
</fileset>
</replaceregexp>
<!-- feature.xml - version -->
<replaceregexp byline="true">
<regexp pattern="version="${old.pde.version}">" />
<substitution expression="version="${new.pde.version}">" />
<fileset dir=".">
<include name="releng/org.slizaa.neo4j.opencypher.feature/feature.xml" />
</fileset>
</replaceregexp>
</target>
</project>