-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.xml
24 lines (23 loc) · 1.14 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="KEmulator" default="asd" basedir=".">
<available file=".git" type="dir" property="git.present"/>
<target name="asd" if="git.present">
<exec executable="git" outputproperty="git.revision" failifexecutionfails="false" errorproperty="">
<arg value="describe"/>
<arg value="--tags"/>
<arg value="--always"/>
<arg value="HEAD"/>
</exec>
<condition property="repository.version" value="${git.revision}" else="unknown">
<and>
<isset property="git.revision"/>
<length string="${git.revision}" trim="yes" length="0" when="greater"/>
</and>
</condition>
<manifest file="./home/version.mf">
<attribute name="Git-Revision" value="${git.revision}"/>
</manifest>
<copy file="./home/version.mf" tofile="./src/main/META-INF/version.mf" overwrite="true" force="true" quiet="true"/>
<copy file="./home/version.mf" tofile="./bin/production/KEmulator_base/META-INF/version.mf" overwrite="true" force="true" quiet="true"/>
</target>
</project>