Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1225450

Summary: Add support for IzPack INSTALL_PATH property to predefine installation path
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Martin Malina <mmalina>
Component: InstallerAssignee: Emmett Underhill <eunderhi>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Stastny <jstastny>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: atangrin, eunderhi, mbaluch
Target Milestone: ER4Keywords: QA-Closed
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-10 08:51:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Malina 2015-05-27 12:07:39 UTC
Description of problem:

In a recent discussion around https://issues.jboss.org/browse/JBIDE-19852 (which deals with jar installers while adding a runtime in JBoss Tools / JBoss Developer Studio), it was pointed out that IzPack supports supplying properties to the installer, so that some values are predefined.
Details are here:
http://docs.codehaus.org/display/IZPACK/Unattended+Installations
The idea is that you could run this:
java -DINSTALL_PATH=/default/path -jar installer.jar
And this would pre-fill the installation path to the path given in the command.

I tried this with jboss-dv-installer-6.1.0.redhat-3.jar , but the installation path prefilled during the installation was still set to /Users/rasp/DV-6.1.0/jboss-eap-6.3 .

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:

1. Run the installer like this:
java -DINSTALL_PATH=/Users/rasp/jbossqa/runtimes/jboss-eap-6.3.0 -jar jboss-dv-installer-6.1.0.redhat-3.jar

Actual results:
This path is prefilled: /Users/rasp/DV-6.1.0/jboss-eap-6.3

Expected results:
During the installation, this path will be prefilled as the installation path:
/Users/rasp/jbossqa/runtimes/jboss-eap-6.3.0

Additional info:
If this gets implemented, it will help us with the tooling - the Eclipse tooling allows to download zip or jar archives of a product (depending on what's available). in the case of a zip, we will ask the user where to extract it and it's easy. In the case of an installer jar, it would be good if we could start the installer from within the tooling with the path already prefilled.

Comment 2 Thomas Hauser 2015-06-11 15:24:40 UTC
Hi Martin,

Are there any other useful variables / properties you'd like to be able to specify in this way? 

Thanks,
Tom

Comment 3 Emmett Underhill 2015-06-11 20:36:43 UTC
TargetPanel method loadDefaultDirFromVariables now checks for the INSTALL_PATH system property, if it exists it uses its value for the default install path.

Therefore you can now set the default install path through the command line.

java -DINSTALL_PATH=(path) -jar...

Thanks,

Emmett

Comment 4 Jan Stastny 2015-07-14 06:10:18 UTC
The property is not working for automatic installer. If it serves to override install path of the installer shouldn't it work for the automatic as well? 
In my view it would be best to maintain consistency between the three types.

Comment 5 Emmett Underhill 2015-07-14 14:41:58 UTC
-DINSTALL_PATH can now be used to specify a new install path for the automated installation (instead of the one chosen during the installation in which the auto.xml file was generated).

Thanks,

Emmett Undherhill

Comment 6 JBoss JIRA Server 2015-10-20 11:04:32 UTC
Radim Hopp <rhopp> updated the status of jira JBIDE-19852 to Closed