forked from kiegroup/jbpm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update-version.xml
61 lines (56 loc) · 2.58 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
58
59
60
61
<?xml version="1.0"?>
<project name="Drools" basedir="." default="usage">
<target name="usage">
<echo>ant -f update-version.xml -Dcurrent="5.0-SNAPSHOT" -Dnew="5.0.0" -Dosgi.current="5.0.0.SNAPSHOT" -Dosgi.new="5.0.0" 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-docs/**/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="<releaseinfo>${current}</releaseinfo>"
replace="<releaseinfo>${new}</releaseinfo>"
byline="true">
<fileset dir="." includes="jbpm-docs/src/main/docbook/**/master.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>
<replaceregexp match="jBPM.url=http://hudson.jboss.org/hudson/job/jBPM/lastStableBuild/artifact/jbpm-distribution/target"
replace="jBPM.url=http://sourceforge.net/projects/jbpm/files/jBPM%205/jbpm-${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>