-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.xml
More file actions
20 lines (18 loc) · 722 Bytes
/
build.xml
File metadata and controls
20 lines (18 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<project name="Builder" default="init" basedir=".">
<description>
...
</description>
<!-- set global properties for this build -->
<property name="src" location="./core/src"/>
<tstamp>
<format property="TODAY_MY" pattern="yyyyMMdd-HHmm" locale="en,US" />
</tstamp>
<target name="init">
<buildnumber/>
<replaceregexp file="${src}/main/java/me/vrekt/oasis/OasisGame.java"
match="public\s+static\s+final\s+String\s+GAME_VERSION\s+=\s+".*";"
replace="public static final String GAME_VERSION = "${TODAY_MY}-${build.number}";"
byline="true"
/>
</target>
</project>