forked from kiegroup/jbpm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update-version.xml
56 lines (51 loc) · 2.22 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
<?xml version="1.0"?>
<project name="jBPM" basedir="." default="usage">
<target name="usage">
<echo>ant -f update-version.xml -Dcurrent="5.2.0-SNAPSHOT" -Dnew="5.3.0-SNAPSHOT" -Dosgi.current="5.2.0.SNAPSHOT" -Dosgi.new="5.3.0.SNAPSHOT" updateVersion</echo>
</target>
<target name="updateVersion" depends="checkProps, error" unless="propsNotSet">
<replaceregexp match="<version>${current}</version>"
replace="<version>${new}</version>"
byline="true">
<fileset dir="." includes="pom.xml,
jbpm-*/pom.xml,
jbpm-gwt/**/pom.xml,
jbpm-human-task/**/pom.xml"/>
</replaceregexp>
<replaceregexp match="<jbpm.version>${current}</jbpm.version>"
replace="<jbpm.version>${new}</jbpm.version>"
byline="true">
<fileset dir="." includes="pom.xml"/>
</replaceregexp>
<replaceregexp match="<jbpm.osgi.version>${osgi.current}</jbpm.osgi.version>"
replace="<jbpm.osgi.version>${osgi.new}</jbpm.osgi.version>"
byline="true">
<fileset dir="." includes="pom.xml"/>
</replaceregexp>
<replaceregexp match="jBPM.version=${current}"
replace="jBPM.version=${new}"
byline="true">
<fileset dir="." includes="jbpm-installer/build.properties"/>
</replaceregexp>
<replaceregexp match="jBPM.version=${current}"
replace="jBPM.version=${new}"
byline="true">
<fileset dir="." includes="jbpm-installer/build.properties"/>
</replaceregexp>
</target>
<target name="error" if="propsNotSet">
<echo>current and new are not set</echo>
</target>
<target name="checkProps">
<condition property="propsSet" value="true">
<not>
<isset property="current" />
</not>
</condition>
<condition property="propsNotSet" value="true">
<not>
<isset property="new" />
</not>
</condition>
</target>
</project>