-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
executable file
·20 lines (16 loc) · 1020 Bytes
/
build.xml
File metadata and controls
executable file
·20 lines (16 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<project name="mxunit.githubpages.com">
<import file="ant-common/git-ant.xml" />
<target name="init">
<gitPull remoteName="origin" branchName="master" />
<get src="https://raw.github.com/mxunit/mxunit/master/buildprops/version.properties" dest="version.properties" />
<property file="version.properties" />
<echoproperties prefix="build" />
<property name="build.version" value="${build.major}.${build.minor}.${build.buildnum}" />
</target>
<target name="updateHtmlReleaseVersion" depends="init">
<replaceregexp file="index.html" match="mxunit-.*?\.zip" replace="mxunit-${build.version}.zip" byline="true" />
<replaceregexp file="index.html" match="id='versionnumber'>.*?<" replace="id='versionnumber'>${build.version}<" />
<replaceregexp file="index.html" match="id='versiondate'>.*?<" replace="id='versiondate'>${build.date}<" />
<gitPushBuildChanges remoteName="origin" branchName="master" message="Updating index.html to MXUnit version ${build.version}" />
</target>
</project>