args.add("-D" + Properties.GETDOWN + "=true");
args.add("-Dsys.install4jVersion=" + Application.i4jVersion);
args.add("-Dinstaller.template_version=" + System.getProperty("installer.template_version"));
- args.add("-Dlauncher_version=" + Build.version());
+ args.add("-Dlauncher.version=" + Build.version());
+ args.add("-Dinstall4j.extrainfo=" + System.getProperty("install4j.extrainfo"));
// set HiDPI property if wanted
String scalePropertyArg = HiDPISetting.getScalePropertyArg();
if (StringUtil.isBlank(appDir)) {
appDir = getUserAppdir();
appDirProv = "user default";
- userAppDir = true;
+ userAppDir = appDir != null;
+ }
+
+ if (SysProps.noUpdate() && Boolean.valueOf(System.getProperty("no" + USE_DEFAULT_APPDIR_PROPERTY)) && appDir == null) {
+ appDir = System.getProperty(APPLICATION_APPDIR_PROPERTY);
}
int skipArgs = 2;
private static final String getUserAppdir() {
System.out.println("##### Property '" + USE_DEFAULT_APPDIR_PROPERTY + "' is '" + System.getProperty(USE_DEFAULT_APPDIR_PROPERTY) + "'");
+ final String noUseDefaultAppDirProperty = "no" + USE_DEFAULT_APPDIR_PROPERTY;
+ if (Boolean.valueOf(System.getProperty(noUseDefaultAppDirProperty))) {
+ System.err.println("Not using default user appdir because property '" + noUseDefaultAppDirProperty + "' is '" + System.getProperty(noUseDefaultAppDirProperty) + "'");
+ return null;
+ }
if (!Boolean.valueOf(System.getProperty(USE_DEFAULT_APPDIR_PROPERTY))) {
- System.out.println("##### NOT setting default app dir");
+ System.err.println("Not using default user appdir because property '" + USE_DEFAULT_APPDIR_PROPERTY + "' is '" + System.getProperty(USE_DEFAULT_APPDIR_PROPERTY) + "'");
return null;
}
String appdirname = installerAppdir == null || installerAppdir.length() == 0 ? ChannelProperties.FALLBACK_APPNAME : installerAppdir;
{
defaultProps.put("install4j_template_version", val);
}
- val = System.getProperty("launcher_version");
+ val = System.getProperty("launcher.version");
if (val != null)
{
- defaultProps.put("launcher_version", val);
+ defaultProps.put("launcher.version", val);
}
defaultProps.put("java_arch",
System.getProperty("os.arch") + " "
* in the alignment.</li>
* <li>SHOW_CONSENSUS_HISTOGRAM (false) Show consensus annotation row's
* histogram.</li>
- * <li>SHOW_SSCONSENSUS_HISTOGRAM (false) Show secondary structure consensus annotation row's
- * histogram.</li>
+ * <li>SHOW_SSCONSENSUS_HISTOGRAM (false) Show secondary structure consensus
+ * annotation row's histogram.</li>
* <li>SHOW_CONSENSUS_LOGO (false) Show consensus annotation row's sequence
* logo.</li>
* <li>NORMALISE_CONSENSUS_LOGO (false) Show consensus annotation row's sequence
System.getProperty("sys.install4jVersion"), "\n", null);
appendIfNotNull(sb, "Install4j template version: ",
System.getProperty("installer.template_version"), "\n", null);
+ appendIfNotNull(sb, "Install4j extrainfo: ",
+ System.getProperty("install4j.extrainfo"), "\n", null);
appendIfNotNull(sb, "Launcher version: ",
- System.getProperty("launcher_version"), "\n", null);
+ System.getProperty("launcher.version"), "\n", null);
LookAndFeel laf = UIManager.getLookAndFeel();
String lafName = laf == null ? "Not obtained" : laf.getName();
String lafClass = laf == null ? "unknown" : laf.getClass().getName();
{
Console.outPrintln("Install4j template version: " + val);
}
- val = System.getProperty("launcher_version");
+ val = System.getProperty("install4j.extrainfo");
+ if (val != null)
+ {
+ Console.outPrintln("Install4j extrainfo: " + val);
+ }
+ val = System.getProperty("launcher.version");
if (val != null)
{
Console.outPrintln("Launcher version: " + val);