JAL-3111 replace year in header for help pages and put processed help in build/distri...
authorJim Procter <jprocter@issues.jalview.org>
Thu, 4 Jul 2019 14:36:07 +0000 (15:36 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 4 Jul 2019 14:36:25 +0000 (15:36 +0100)
build.gradle
gradle.properties
utils/publishHelp.xml

index 861fa21..383e189 100644 (file)
@@ -638,7 +638,7 @@ task copyHelp(type: Copy) {
     exclude '**/*.gif'
       exclude '**/*.jpg'
       exclude '**/*.png'
-      filter(ReplaceTokens, beginToken: '$$', endToken: '$$', tokens: ['Version-Rel': JALVIEW_VERSION])
+      filter(ReplaceTokens, beginToken: '$$', endToken: '$$', tokens: ['Version-Rel': JALVIEW_VERSION,'Year-Rel': getDate("yyyy")])
   }
   from(inputDir) {
     include '**/*.gif'
@@ -1232,5 +1232,5 @@ task helppages  {
   dependsOn pubhtmlhelp
   
   inputs.dir("$classes/$helpDir")
-  outputs.file("build/distribution/help/helpTOC.html")
+  outputs.dir("$helpOutputDir")
 }
index 6605fa9..53189f0 100644 (file)
@@ -21,7 +21,7 @@ j11libDir = j11lib
 resourceDir = resources
 helpParentDir = help
 helpDir = help
-helpOutputDir = build/distribution/help
+helpOutputDir = build/distributions/help
 docDir = doc
 sourceDir = src
 schemaDir = schemas
index 17ef9e2..c626a21 100644 (file)
@@ -1,7 +1,7 @@
 <project name="Publish Help Webpages for Jalview" default="pubhtmlhelp">
 
 <target name="pubhtmlhelp">
-  <property name="appletHelpDir" value="../build/distribution/help"/>
+  <property name="appletHelpDir" value="../build/distributions/help"/>
         <!-- finally, publish the help files -->
         <javac srcdir="." destdir="." includes="help2Website.java"/>
         <java fork="true" dir="${helpBuildDir}" classpath="." classname="help2Website"/>