JAL-3577 changed default RELEASE dir in build.gradle to use absolute path to help...
[jalview.git] / build.gradle
index 4bb52b0..f7233f1 100644 (file)
@@ -84,7 +84,7 @@ ext {
   // Expect jalview.version and target release branch in jalview.release        
   def releaseProps = new Properties();
   def releasePropFile = findProperty("JALVIEW_RELEASE_FILE");
-  def defaultReleasePropFile = "${jalviewDir}/RELEASE";
+  def defaultReleasePropFile = "${jalviewDirAbsolutePath}/RELEASE";
   try {
     (new File(releasePropFile!=null ? releasePropFile : defaultReleasePropFile)).withInputStream { 
      releaseProps.load(it)
@@ -1300,8 +1300,10 @@ task getdownWebsite() {
 
 // a helper task to allow getdown digest of any dir: `gradle getdownDigestDir -PDIGESTDIR=/path/to/my/random/getdown/dir
 task getdownDigestDir(type: JavaExec) {
+  group "Help"
+  description "A task to run a getdown Digest on a dir with getdown.txt. Provide a DIGESTDIR property via -PDIGESTDIR=..."
+
   def digestDirPropertyName = "DIGESTDIR"
-  description = "Digest a local dir (-P${digestDirPropertyName}=...) for getdown"
   doFirst {
     classpath = files(getdownLauncher)
     def digestDir = findProperty(digestDirPropertyName)
@@ -1421,7 +1423,8 @@ task copyInstall4jTemplate {
     // NB we're deleting the /other/ one!
     // Also remove the examples subdir from non-release versions
     def customizedIdToDelete = "PROGRAM_GROUP_RELEASE"
-    if (CHANNEL=="RELEASE") {
+    // 2.11.1.0 NOT releasing with the Examples folder in the Program Group
+    if (false && CHANNEL=="RELEASE") { // remove 'false && ' to include Examples folder in RELEASE channel
       customizedIdToDelete = "PROGRAM_GROUP_NON_RELEASE"
     } else {
       // remove the examples subdir from Full File Set