[pkg-java] r4472 - trunk/jajuk/debian
varun-guest at alioth.debian.org
varun-guest at alioth.debian.org
Fri Oct 26 20:25:35 UTC 2007
Author: varun-guest
Date: 2007-10-26 20:25:34 +0000 (Fri, 26 Oct 2007)
New Revision: 4472
Modified:
trunk/jajuk/debian/ant.properties
trunk/jajuk/debian/build.xml
Log:
* Update build.xml to set build time stamp and version.
Modified: trunk/jajuk/debian/ant.properties
===================================================================
--- trunk/jajuk/debian/ant.properties 2007-10-26 18:25:55 UTC (rev 4471)
+++ trunk/jajuk/debian/ant.properties 2007-10-26 20:25:34 UTC (rev 4472)
@@ -1,3 +1,4 @@
+jajuk.version=1.4
class.dir=build
source.dir=src/main/java
doc.dir=src/doc
Modified: trunk/jajuk/debian/build.xml
===================================================================
--- trunk/jajuk/debian/build.xml 2007-10-26 18:25:55 UTC (rev 4471)
+++ trunk/jajuk/debian/build.xml 2007-10-26 20:25:34 UTC (rev 4472)
@@ -9,7 +9,25 @@
<delete file="${jar.name}"/>
</target>
- <target name="compile" description="Compile the sources">
+ <target name="init" description="Set the timestamps">
+ <!-- Set build date -->
+ <tstamp>
+ <format property='build.time' pattern='yyyy/MM/dd HH:mm' />
+ </tstamp>
+ <echo message='Build time: ${build.time}' />
+ <replace dir="${source.dir}/org/jajuk/util" value="${build.time}">
+ <include name='ITechnicalStrings.java' />
+ <replacetoken>DATE_REPLACED_BY_ANT</replacetoken>
+ </replace>
+ <!-- Set release in code-->
+ <replace dir="${source.dir}/org/jajuk/util" value="${jajuk.version}">
+ <include name="ITechnicalStrings.java" />
+ <replacetoken>VERSION_REPLACED_BY_ANT</replacetoken>
+ </replace>
+
+ </target>
+
+ <target name="compile" description="Compile the sources" depends="init">
<mkdir dir="${class.dir}"/>
<javac srcdir="${source.dir}" destdir="${class.dir}"
deprecation="true" debug="true" optimize="false"/>
More information about the pkg-java-commits
mailing list