Change build property name from "timestamp" to "datetime"
This commit is contained in:
parent
1f69ba48d9
commit
c8355f4124
2 changed files with 6 additions and 3 deletions
|
|
@ -75,10 +75,13 @@
|
|||
</not>
|
||||
</condition>
|
||||
|
||||
<!-- time & date -->
|
||||
<tstamp>
|
||||
<format property="timestamp" pattern="yyyy-MM-dd HH:mm:ss"/>
|
||||
<format property="year" pattern="yyyy"/>
|
||||
<format property="date" pattern="yyyy-MM-dd"/>
|
||||
<format property="time" pattern="HH:mm:ss"/>
|
||||
</tstamp>
|
||||
<property name="datetime" value="${date} ${time}"/>
|
||||
|
||||
<!-- check for some executables -->
|
||||
<available property="python.present" file="python${exe.ext}" filepath="${env.PATH}"/>
|
||||
|
|
|
|||
|
|
@ -480,7 +480,7 @@
|
|||
<echo file="${src}/games/stendhal/client/StendhalBuild.java">
|
||||
package games.stendhal.client;
|
||||
public class StendhalBuild {
|
||||
private static final String BUILD_NUMBER = "${timestamp}";
|
||||
private static final String BUILD_NUMBER = "${datetime}";
|
||||
public static String getBuildNumber() {return BUILD_NUMBER;}
|
||||
}
|
||||
</echo>
|
||||
|
|
@ -699,7 +699,7 @@
|
|||
|
||||
stendhal.data.build = {
|
||||
version: "${version}",
|
||||
build: "${timestamp}",
|
||||
build: "${datetime}",
|
||||
dist: "webclient"
|
||||
}
|
||||
</echo>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue