forked from slizaa/slizaa_deprecated
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update-version.xml
57 lines (49 loc) · 2.2 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
55
56
57
<project name="update-version" basedir="." default="update-version">
<property name="old.version" value="0.0.3" />
<property name="new.version" value="0.0.4" />
<!-- =================================
target: update-version
================================= -->
<target name="update-version">
<!-- pom.xml - version -->
<replaceregexp byline="true">
<regexp pattern="<version>${old.version}-SNAPSHOT</version>" />
<substitution expression="<version>${new.version}-SNAPSHOT</version>" />
<fileset dir=".">
<include name="**/*pom.xml" />
</fileset>
</replaceregexp>
<!-- MANIFEST.MF - Bundle-Version -->
<replaceregexp byline="true">
<regexp pattern="Bundle-Version: ${old.version}.qualifier" />
<substitution expression="Bundle-Version: ${new.version}.qualifier" />
<fileset dir=".">
<include name="**/META-INF/MANIFEST.MF" />
</fileset>
</replaceregexp>
<!-- MANIFEST.MF - Require-Bundle -->
<replaceregexp>
<regexp pattern="org.slizaa.([^;]*);bundle-version="${old.version}";" />
<substitution expression="org.slizaa.\1;bundle-version="${new.version}";" />
<fileset dir=".">
<include name="**/META-INF/MANIFEST.MF" />
</fileset>
</replaceregexp>
<!-- feature.xml - version -->
<replaceregexp byline="true">
<regexp pattern="version="${old.version}.qualifier">" />
<substitution expression="version="${new.version}.qualifier">" />
<fileset dir=".">
<include name="03-org.slizaa.neo4j.jqassistant/org.slizaa.neo4j.jqassistant.feature/feature.xml" />
</fileset>
</replaceregexp>
<!-- product.xml - version -->
<replaceregexp>
<regexp pattern="application="org.slizaa.neo4j.jqassistant.application.slizaa4jqassistant" version="${old.version}"" />
<substitution expression="application="org.slizaa.neo4j.jqassistant.application.slizaa4jqassistant" version="${new.version}"" />
<fileset dir=".">
<include name="03-org.slizaa.neo4j.jqassistant/org.slizaa.neo4j.jqassistant.product/org.slizaa.neo4j.jqassistant.application.slizaa4jqassistant.product" />
</fileset>
</replaceregexp>
</target>
</project>