System.getProperty("sys.install4jVersion"), "\n", null);
if (extra)
{
+ String installerAppdir = System.getProperty("installer.appdir");
+ if (installerAppdir != null)
+ {
+ try
+ {
+ String temp = new File(installerAppdir).getCanonicalPath();
+ installerAppdir = temp;
+ } catch (IOException e)
+ {
+ installerAppdir = "(non-canonical) " + installerAppdir;
+ Console.warn(
+ "Could not get canonical path for installer appdir, leaving as is.");
+ }
+ }
+ else
+ {
+ installerAppdir = "null: " + installerAppdir;
+ }
appendIfNotNull(sb, "Installer template version: ",
System.getProperty("installer.template_version"), "\n", null);
- appendIfNotNull(sb, "Installer appdir: ",
- System.getProperty("installer.appdir"), "\n", null);
+ appendIfNotNull(sb, "Installer appdir: ", installerAppdir, "\n",
+ null);
appendIfNotNull(sb, "Installer extrainfo: ",
System.getProperty("installer.extrainfo"), "\n", null);
}