Writes .build_properties file for build date and version
authoramwaterhouse <Andrew Waterhouse>
Mon, 11 Jul 2005 13:02:34 +0000 (13:02 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 11 Jul 2005 13:02:34 +0000 (13:02 +0000)
build.xml

index dbed685..1bb59e8 100755 (executable)
--- a/build.xml
+++ b/build.xml
@@ -38,6 +38,7 @@
         </fileset> -->
       </path>
 
+      <property name="JALVIEW_VERSION" value="2.01"/>
       <property name="" value=""/>
       <property name="libDir" value="lib"/>
       <property name="resourceDir" value="resources"/>
       -->
     </target>
 
+
+    <taskdef classpath="utils/roxes-ant-tasks-1.2-2004-01-30.jar" resource="com/roxes/tools/ant/taskdefs.properties"/>
+    <target name="buildPropertiesFile" depends="init">
+      <tstamp prefix="build">
+        <format property="date" pattern="dd MMMM yyyy hh.mm aa"/>
+      </tstamp>
+      <properties file="${outputDir}/.build_properties">
+        <header>
+          ---Jalview Application Properties---
+        </header>
+        <property name="VERSION" value="${JALVIEW_VERSION}"/>
+        <property name="BUILD_DATE" value="${build.date}"/>
+      </properties>
+    </target>
+
+
     <target name="clean" depends="init">
       <!-- not efficient yet. -->
       <delete dir="${outputDir}"/>
     </java>
     </target>
 
-    <target name="makejars" depends="build, buildindices">
+    <target name="makejars" depends="build, buildPropertiesFile, buildindices">
       <!-- make the package jar -->
       <mkdir dir="${packageDir}"/>
 
        -->
        </information>
         <resources>
-          <j2se version="1.3+"/>
+          <j2se version="1.4+"/>
           <fileset dir="${packageDir}">
             <include name="jalview.jar"/>
           </fileset>