-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildVersion.xml
35 lines (30 loc) · 1.06 KB
/
buildVersion.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
<?xml version="1.0" encoding="utf-8"?>
<project name="StarImageLib_BuildVersion" default="displayVersion">
<target name="incrementMajor">
<antcall target="checkForDefaults"/>
<propertyfile file="build.version">
<entry key="major" type="int" default="0" operation="+"/>
</propertyfile>
<property file="build.version"/>
<echo message="Incremented to version ${major}.${minor}"/>
</target>
<target name="incrementMinor">
<antcall target="checkForDefaults"/>
<propertyfile file="build.version">
<entry key="minor" type="int" default="0" operation="+"/>
</propertyfile>
<property file="build.version"/>
<echo message="Incremented to version ${major}.${minor}"/>
</target>
<target name="displayVersion">
<antcall target="checkForDefaults"/>
<property file="build.version"/>
<echo message="Version is currently ${major}.${minor}"/>
</target>
<target name="checkForDefaults">
<propertyfile file="build.version">
<entry key="major" type="int" default="0"/>
<entry key="minor" type="int" default="0"/>
</propertyfile>
</target>
</project>