After moving my build process over to a new compter as a result of the java v1.7 upgrade (as detailed in the "Building from the SVN?" thread), I noticed that the release revision is missing from my Main Interface window Title Bar. It just says
instead of e.g.,
which shows on a downloaded daily .jar file. I think this had actually broken sometime earlier on the old system and I never got around to trying to track it down. This seems like a good time to tackle it, what with new beginnings and all.
I'm not well versed in ant, build I've looked thru the build.xml file and it looks to me like the code in the daily target (shown here)
Should cause KoLConstants.java to be updated with the proper revision, but that doesn't seem to be happening. If I look at KoLConstants.java, I see
I would appreciate any help that anyone could provide with this. Thanks, in advance.
Sys details:
Mac OS X version 10.9.4
java version "1.7.0_55"
Apache Ant(TM) version 1.9.4 compiled on April 29 2014
Let me know if there is any additional information I can provide.
Code:
KoLmafia v16.3 Main Interface (Ethelred)
Code:
KoLmafia v16.3 r14378 Main Interface (Ethelred)
I'm not well versed in ant, build I've looked thru the build.xml file and it looks to me like the code in the daily target (shown here)
Code:
<target name="daily" depends="clean,init,update,version">
<replace
file="${KoLConstants}"
token="REVISION = null"
value="REVISION = "${revision}"" />
<replace
file="${KoLConstants}"
token="RELEASED = true"
value="RELEASED = false" />
<antcall target="compile" />
<replace
file="${KoLConstants}"
token="REVISION = "${revision}""
value="REVISION = null" />
<replace
file="${KoLConstants}"
token="RELEASED = false"
value="RELEASED = true" />
<jar
destfile="${dist}/${ant.project.name}-${revision}.jar"
basedir="${build}"
update="true"
index="true"
compress="true">
<manifest>
<attribute name="Main-Class" value="${main}" />
</manifest>
<zipgroupfileset dir="${lib}/jar">
<include name="*.jar"/>
</zipgroupfileset>
</jar>
</target>
Should cause KoLConstants.java to be updated with the proper revision, but that doesn't seem to be happening. If I look at KoLConstants.java, I see
Code:
public static final String REVISION = "";
I would appreciate any help that anyone could provide with this. Thanks, in advance.
Sys details:
Mac OS X version 10.9.4
java version "1.7.0_55"
Apache Ant(TM) version 1.9.4 compiled on April 29 2014
Let me know if there is any additional information I can provide.
Last edited: