JAL-3210 Possibly fixed eclipse_workspace_location disappearances, again
authorBen Soares <bsoares@dundee.ac.uk>
Wed, 13 Nov 2019 17:10:31 +0000 (17:10 +0000)
committerBen Soares <bsoares@dundee.ac.uk>
Wed, 13 Nov 2019 17:10:31 +0000 (17:10 +0000)
build.gradle

index 2612fdb..21a4c81 100644 (file)
@@ -1421,16 +1421,17 @@ task jalviewjsSetEclipseWorkspace {
   def eclipseWsDir = propVal
   def props = new Properties()
 
+  def writeProps = true
   if (( eclipseWsDir == null || !file(eclipseWsDir).exists() ) && propsFile.exists()) {
     def ins = new FileInputStream(propsFileName)
     props.load(ins)
     ins.close()
     if (props.getProperty(propKey, null) != null) {
       eclipseWsDir = props.getProperty(propKey)
+      writeProps = false
     }
   }
 
-  def writeProps = false
   if (eclipseWsDir == null || !file(eclipseWsDir).exists()) {
     def tempDir = File.createTempDir()
     eclipseWsDir = tempDir.getAbsolutePath()