JAL-1683 reinstate replacetoken patterns so source replacement happens!
authorJim Procter <jprocter@issues.jalview.org>
Tue, 25 Oct 2016 08:30:06 +0000 (09:30 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Tue, 25 Oct 2016 08:30:06 +0000 (09:30 +0100)
build.xml

index 7235950..1d4878b 100755 (executable)
--- a/build.xml
+++ b/build.xml
   <tstamp prefix="build">
     <format property="year" pattern="yyyy" />
   </tstamp>
+  <!-- each replacetoken CDATA body must be on one line - 
+       otherwise the pattern doesn't match -->
   <replace value="${JALVIEW_VERSION}">
-    <replacetoken>
-      <![CDATA[$$Version-Rel$$]]>
-    </replacetoken>
+    <replacetoken><![CDATA[$$Version-Rel$$]]></replacetoken>
     <fileset dir="_sourcedist">
       <include name="**/*" />
     </fileset>
   </replace>
   <replace dir="_sourcedist" value="${build.year}">
-    <replacetoken>
-      <![CDATA[$$Year-Rel$$]]>
-    </replacetoken>
+    <replacetoken><![CDATA[$$Year-Rel$$]]></replacetoken>
     <fileset dir="_sourcedist">
       <include name="**/*" />
     </fileset>