JAL-1522 output installation type to stdout
authorJim Procter <jprocter@dundee.ac.uk>
Fri, 28 Nov 2014 14:58:00 +0000 (14:58 +0000)
committerJim Procter <jprocter@dundee.ac.uk>
Fri, 28 Nov 2014 14:58:00 +0000 (14:58 +0000)
src/jalview/bin/Cache.java

index d11bffe..3dea84e 100755 (executable)
@@ -379,15 +379,21 @@ public class Cache
 
     String jnlpVersion = System.getProperty("jalview.version");
     String codeVersion = getProperty("VERSION");
-
+    String codeInstallation = getProperty("INSTALLATION");
     if (codeVersion == null)
     {
       // THIS SHOULD ONLY BE THE CASE WHEN TESTING!!
       codeVersion = "Test";
       jnlpVersion = "Test";
+      codeInstallation = "";
+    }
+    else
+    {
+      codeInstallation = " (" + codeInstallation + ")";
     }
 
-    System.out.println("Jalview Version: " + codeVersion);
+    System.out
+            .println("Jalview Version: " + codeVersion + codeInstallation);
 
     // jnlpVersion will be null if we're using InstallAnywhere
     // Dont do this check if running in headless mode