Console installer execute packs in different order than GUI installer

Description

I have one pack that copies files to the install directory.

Another pack then tries to update the installed script with a <parsable>
<parsable targetfile="$INSTALL_PATH/install/scripts/install-isort-db.sh"/>

When running with GUI-installer, everything works fine, but when running console installer it seams that the packs are executed in the wrong order. The file was not copied before the parse-statement.

The console installer aborts with the following message:

----------------------------
[ Starting to unpack ]
[ Processing package: Documentation (1/10) ]
[ Processing package: Databases (2/10) ]
Oct 26, 2015 10:57:21 AM SEVERE: Failed to parse: /opt/isort/5.1/install/scripts/install-isort-db.sh
[ Unpacking finished ]
No such file or directory
com.izforge.izpack.api.exception.IzPackException: An error occured- in com.izforge.izpack.installer.bootstrap.Installer.main() at Installer.java:72

  • in com.izforge.izpack.installer.bootstrap.Installer.start() at Installer.java:193

  • in com.izforge.izpack.installer.bootstrap.Installer.launchInstall() at Installer.java:225

  • in com.izforge.izpack.installer.bootstrap.Installer.launchConsoleInstaller() at Installer.java:262

  • in com.izforge.izpack.installer.console.ConsoleInstaller.run() at ConsoleInstaller.java:183

  • in com.izforge.izpack.installer.panel.AbstractPanels.next() at AbstractPanels.java:234

  • in com.izforge.izpack.installer.panel.AbstractPanels.next() at AbstractPanels.java:254

  • in com.izforge.izpack.installer.panel.AbstractPanels.switchPanel() at AbstractPanels.java:509

  • in com.izforge.izpack.installer.console.ConsolePanels.switchPanel() at ConsolePanels.java:36

  • in com.izforge.izpack.installer.console.ConsolePanels.switchPanel() at ConsolePanels.java:80

  • in com.izforge.izpack.installer.console.ConsoleInstallAction.run() at ConsoleInstallAction.java:64

  • in com.izforge.izpack.panels.install.InstallConsolePanel.run() at InstallConsolePanel.java:69

  • in com.izforge.izpack.panels.install.InstallConsolePanel.run() at InstallConsolePanel.java:137

  • in com.izforge.izpack.installer.unpacker.UnpackerBase.run() at UnpackerBase.java:235

  • in com.izforge.izpack.installer.unpacker.UnpackerBase.unpack() at UnpackerBase.java:275
    Caused by: java.io.IOException: Failed to create temporary file for /opt/isort/5.1/install/scripts/install-isort-db.sh in directory /opt/isort/5.1/install/scripts- in com.izforge.izpack.installer.unpacker.UnpackerBase.unpack() at UnpackerBase.java:253

  • in com.izforge.izpack.installer.unpacker.UnpackerBase.unpack() at UnpackerBase.java:435

  • in com.izforge.izpack.installer.unpacker.UnpackerBase.parseFiles() at UnpackerBase.java:909

  • in com.izforge.izpack.installer.unpacker.ScriptParser.parse() at ScriptParser.java:96
    Caused by: java.io.IOException: No such file or directory- in com.izforge.izpack.installer.unpacker.ScriptParser.parse() at ScriptParser.java:92

  • in java.io.File.createTempFile() at File.java:1989

  • in java.io.File.createNewFile() at File.java:1006

  • in java.io.UnixFileSystem.createFileExclusively() at UnixFileSystem.java:-2

Environment

Ubuntu 14.04

Assignee

René Krell

Reporter

Jonas Stenberg

Impact

None

Sprint

None

Fix versions

Affects versions

Priority

High
Configure