JAL-2895 replace $$Jalview-Version$$ in help.jhm with build version when indexing...
authorJim Procter <jprocter@issues.jalview.org>
Wed, 23 May 2018 14:17:45 +0000 (15:17 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 23 May 2018 14:17:45 +0000 (15:17 +0100)
build.xml
help/help.jhm

index 3d26efc..133941a 100755 (executable)
--- a/build.xml
+++ b/build.xml
   </target>
 
   <target name="buildindices" depends="init, prepare" unless="help.uptodate">
+    <replace value="${JALVIEW_VERSION}">
+      <replacetoken><![CDATA[$$Version-Rel$$]]></replacetoken>
+      <fileset dir="${outputDir}/${helpDir}">
+        <include name="help.jhm" />
+      </fileset>
+    </replace>
+
     <java classname="com.sun.java.help.search.Indexer" classpathref="build.classpath" fork="true" dir="${outputDir}/${helpDir}">
       <arg line="html" />
     </java>
index d9a201a..e4bf12c 100755 (executable)
@@ -22,7 +22,7 @@
    <mapID target="home" url="html/index.html" />
    
    <mapID target="new" url="html/whatsNew.html"/>
-   <mapID target="release" url="html/releases.html#Jalview.2.10.4"/>
+   <mapID target="release" url="html/releases.html#Jalview.$$Version-Rel$$"/>
    <mapID target="alannotation" url="html/features/annotation.html"/>
    <mapID target="keys" url="html/keys.html"/>
    <mapID target="newkeys" url="html/features/newkeystrokes.html"/>