-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
72 lines (61 loc) · 2.26 KB
/
build.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
62
63
64
65
66
67
68
69
70
71
72
<?xml version="1.0"?>
<project name="one20" default="minify" basedir=".">
<!-- Include the property files -->
<property file="${basedir}/build/settings/user.properties"/>
<property file="${basedir}/build/settings/project.properties"/>
<property file="${basedir}/build/settings/version.properties"/>
<property file="${basedir}/build/settings/test.properties"/>
<!-- Include the master build file -->
<import file="${basedir}/build/master/master.xml"/>
<target name="release" depends="prepare,minify,testVarScoper" description="Tags a release">
<echo message="Starting: Release of version ${project.version}" />
<!-- Start a release branch -->
<git command="flow" dir="${basedir}">
<args>
<arg value="release" />
<arg value="start" />
<arg value="${project.version}" />
</args>
</git>
<!-- Update the release version number -->
<replaceregexp file="${basedir}/version.json"
match=""version": "[0-9\.]*""
replace=""version": "${project.version}""
byline="true"/>
<!-- Update the download version number -->
<replaceregexp file="${basedir}/version.json"
match="tarball/[0-9\.]*""
replace="tarball/${project.version}""
byline="true"
/>
<!-- Finish a release branch -->
<git command="commit" dir="${basedir}">
<args>
<arg value="-a" />
<arg value="-m 'Updated version files for release'" />
</args>
</git>
<!-- Finish a release branch -->
<git command="flow" dir="${basedir}">
<args>
<arg value="release" />
<arg value="finish" />
<arg value="${project.version}" />
<arg value="-m 'Tagging version ${project.version}'" />
</args>
</git>
<!-- Update the build version -->
<propertyfile file="${build}/settings/version.properties" comment="Version properties">
<entry key="project.version.build" value="1" operation="+" type="int"/>
</propertyfile>
<antcall target="versionChanged" inheritall="false" inheritrefs="false"></antcall>
<!-- Commit the updated version files -->
<git command="commit" dir="${basedir}">
<args>
<arg value="-a" />
<arg value="-m 'Updated version properties for next release'" />
</args>
</git>
<echo message="Finished: Release of version ${project.version}"/>
</target>
</project>