[izpack-users] Accessing variables at install time
Bartz, Klaus
Klaus.Bartz at coi.de
Tue Aug 8 09:04:29 CEST 2006
Hi Paul,
more than one way goes to Rom...
I use the AntActionInstallerListener of IzPack for revise our ear file.
It contains place holder in some config files. For it I have written a
little ant task which unpacks the ear, uses the replace task and packs
it again. The placeholder are in a properties file.
This file I create in an other custom action on the fly. There is no
template, else the defaults are written in the source of the custom action.
All IzPack variables for this have a prefix. All variables with such an
prefix will be write into the properties file. Therefore only the
variable have to be declared to add a new one.
If needed, I can give you the source.
I do not use the UserInputPanel else I write my own panels (in the moment
I change the layout behavior for this). I create simple the variables
in the isValidated() method like
idata.setVariable("EJBProperties.EJB_Host", hostName.getText());
Cheers
Klaus
>-----Original Message-----
>From: izpack-users-bounces at lists.berlios.de
>[mailto:izpack-users-bounces at lists.berlios.de]On Behalf Of Paul Stuart
>Sent: Monday, August 07, 2006 5:40 PM
>To: izpack-users at lists.berlios.de
>Subject: [izpack-users] Accessing variables at install time
>
>
>Hi,
>
>Our software currently is installed using a script wrapper around an
>ant installer. The user has to edit a properties file and then run the
>script.
>
>I would like to use IzPack to gather user input and generate the
>properties file and then run the script.
>
>I've created a "Hello World" installer with multiple UserInputPanel
>panels but haven't been able to figure out how to acces all those user
>input variables at install time (to generate a new properties file). I
>see
>
>I also couldn't see a clean way of importing the initial properties
>file into the installer--the only way it looks like would be for me to
>do a transform of the file to a <variables> list and insert that into
>install.xml.
>
>Any insight would be appreciated!
>
>-Paul
>_______________________________________________
>izpack-users mailing list
>izpack-users at lists.berlios.de
>http://bat.berlios.de/mailman/listinfo/izpack-users
>
More information about the izpack-users
mailing list