JAL-1678 fix replace token for launchApp in a buildwq
authorJim Procter <jprocter@dundee.ac.uk>
Thu, 5 Mar 2015 15:48:04 +0000 (15:48 +0000)
committerJim Procter <jprocter@dundee.ac.uk>
Thu, 5 Mar 2015 15:48:04 +0000 (15:48 +0000)
build.xml

index 861d587..4fe6d7f 100755 (executable)
--- a/build.xml
+++ b/build.xml
       <include name="**/*"/>
     </fileset>
   </copy>
-       <replace token="http://www.jalview.org/services/launchApp" value="http://www.jalview.org/services/launchApp?version=${JALVIEW_VERSION}">
-               <fileset dir="${packageDir}/examples">
-                       <include name="**/*.html"/>
-               </fileset>
-       </replace>
   <jar update="true" index="true" jarfile="${packageDir}/examples/${jalviewLiteJar}"/>
   <jar update="true" index="true" jarfile="${packageDir}/examples/${jmolJar}">
     <manifest>
   </signjar>
   <!-- bizarre bug causes JmolApplet to always get signed, even if excluded from above. so copy explicitly -->
   <copy file="appletlib/${jmolJar}" tofile="${packageDir}/examples/u_${jmolJar}" overwrite="true" />
+       <!-- finally, replace any launchApp servlet tags with a version specification -->
+       <replace value="http://www.jalview.org/services/launchApp?version=${JALVIEW_VERSION}&quot;">
+               <replacetoken><![CDATA[http://www.jalview.org/services/launchApp"]]></replacetoken>
+               <fileset dir="${packageDir}/examples">
+                       <include name="**/*.html"/>
+               </fileset>
+       </replace>
+       <replace value="http://www.jalview.org/services/launchApp?version=${JALVIEW_VERSION}'">
+               <replacetoken><![CDATA[http://www.jalview.org/services/launchApp']]></replacetoken>
+               <fileset dir="${packageDir}/examples">
+                       <include name="**/*.html"/>
+               </fileset>
+       </replace>
+
 </target>
 <target name="sourcedoc" description="Create jalview source documentation pages" depends="init">
   <javadoc destdir="${javadocDir}">