[izpack-users] Accessing variables at install time

Paul Stuart pauleyphonic at gmail.com
Tue Aug 8 20:36:39 CEST 2006


Hi Klaus,

Thanks for the feedback. Yes, sample source would be valuable :-)

I'm prepared to do custom code for this, I just wanted to avoid reinventing
the wheel. I would think that this would be built in--after all, one has
just gathered up all a user's input for an installation but there is no
standard mechanism to apply that data.

I'm impressed by the product and hope to be able to contribute to it as
well.

Cheers,
Paul

On 8/8/06, Bartz, Klaus <Klaus.Bartz at coi.de> wrote:
>
> 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
> >
> _______________________________________________
> izpack-users mailing list
> izpack-users at lists.berlios.de
> http://bat.berlios.de/mailman/listinfo/izpack-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/izpack-users/attachments/20060808/ddfba1e4/attachment.html 


More information about the izpack-users mailing list