forked from tschaub/suite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate-versions.xml
More file actions
25 lines (21 loc) · 768 Bytes
/
Copy pathupdate-versions.xml
File metadata and controls
25 lines (21 loc) · 768 Bytes
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
<project name="update-versions" default="update">
<property name="rootdir" value="${ant.file.update-verisons}/../../"/>
<target name="check-args">
<fail message="from version not specified" unless="from"/>
<fail message="to version not specified" unless="to"/>
</target>
<target name="update" depends="check-args">
<replace token="${from}" value="${to}">
<fileset dir="${rootdir}">
<include name="**/pom.xml"/>
<exclude name="**/externals/**/*"/>
<exclude name="**/target/**/*"/>
</fileset>
<fileset dir="${rootdir}">
<include name="**/*.properties"/>
<exclude name="**/externals/**/*"/>
<exclude name="**/target/**/*"/>
</fileset>
</replace>
</target>
</project>