}
};
+ /* build Properties (not all saved to .jalview_properties) */
+ public static Properties buildProperties = new Properties();
+
/** Default file is ~/.jalview_properties */
static String propertiesFile;
String buildDetails = resolveResourceURLFor("/.build_properties");
URL localJarFileURL = new URL(buildDetails);
InputStream in = localJarFileURL.openStream();
- applicationProperties.load(in);
+ buildProperties.load(in);
in.close();
+ applicationProperties.put("BUILD_DATE",
+ buildProperties.get("BUILD_DATE"));
+ applicationProperties.put("INSTALLATION",
+ buildProperties.get("INSTALLATION"));
+ applicationProperties.put("VERSION", buildProperties.get("VERSION"));
} catch (Exception ex)
{
System.out.println("Error reading build details: " + ex);
String distDir = System.getProperty("getdowndistdir");
if (appbase == null)
{
+ appbase = buildProperties.getProperty("GETDOWNAPPBASE");
+ distDir = buildProperties.getProperty("GETDOWNAPPDISTDIR");
+ }
+ if (appbase == null)
+ {
appbase = releaseAppbase;
distDir = "release";
}