Merge branch 'develop' of http://source.jalview.org/git/jalview into develop
authorJim Procter <jprocter@issues.jalview.org>
Thu, 4 Jul 2019 15:33:48 +0000 (16:33 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 4 Jul 2019 15:33:48 +0000 (16:33 +0100)
1  2 
build.gradle

diff --combined build.gradle
@@@ -638,7 -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'
@@@ -1170,7 -1170,13 +1170,13 @@@ clean 
  task sourceDist (type: Tar) {
    
    def VERSION_UNDERSCORES = JALVIEW_VERSION.replaceAll("\\.", "_")
-   archiveFileName = project.name + "_" + VERSION_UNDERSCORES + ".tar.gz"
+   def outputFileName = project.name + "_" + VERSION_UNDERSCORES + ".tar.gz"
+   // cater for buildship < 3.1 [3.0.1 is max version in eclipse 2018-09]
+   try {
+     archiveFileName = outputFileName
+   } catch (Exception e) {
+     archiveName = outputFileName
+   }
    
    compression Compression.GZIP
    
@@@ -1232,5 -1238,5 +1238,5 @@@ task helppages  
    dependsOn pubhtmlhelp
    
    inputs.dir("$classes/$helpDir")
 -  outputs.file("build/distribution/help/helpTOC.html")
 +  outputs.dir("$helpOutputDir")
  }