[izpack-devel] How can I get the installer's variables in myownclass in the executeclass

Bartz, Klaus Klaus.Bartz at coi.de
Tue Jan 8 09:44:40 CET 2008


Hi, Lionel,
no problem.
I use InstallData.getVariables() more than once in my own custom actions
(InstallerListener). Often in a call to VariableSubstitutor. May be that
what you need. If you use Eclipse with IzPack sources you can simple
find the calls and use them as example.
Do you know the custom action concept? May be it is also a way to solve
your requirements.
 
Cheers
 
Klaus

	-----Original Message-----
	From: izpack-devel-bounces at lists.berlios.de
[mailto:izpack-devel-bounces at lists.berlios.de] On Behalf Of RAMOS lionel
	Sent: Monday, January 07, 2008 5:09 PM
	To: izpack-devel at lists.berlios.de
	Subject: Re: [izpack-devel] How can I get the installer's
variables in myownclass in the executeclass
	
	
	Hi Klaus,
	 
	 
	Oh jesus,
	 
	I haven't seen her...
	Thanks for replying me quickly, 
	sorry I must buy other glasses I think.
	 
	I'll used installData for the same things that used the
<parsable> tag in the main xml.
	 
	It is a good idea?
	 
	Regards



	-- 
	Lionel 
	
	
	On Jan 7, 2008 4:13 PM, Bartz, Klaus <Klaus.Bartz at coi.de> wrote:
	

		Hi  Lionel,

		long time ago I have had also such a problem. Since
them, a getInstance method for the install data exist.

		Vars you can access like

		String javaPath =
AutomatedInstallData.getInstance().getVariable("MyVar");

		Cheers

		Klaus

			-----Original Message-----
			From: izpack-devel-bounces at lists.berlios.de
[mailto:izpack-devel-bounces at lists.berlios.de] On Behalf Of RAMOS lionel
			Sent: Monday, January 07, 2008 3:30 PM
			To: izpack-devel at lists.berlios.de
			Subject: [izpack-devel] How can I get the
installer's variables in my ownclass in the executeclass
			
			
			Hi guys,
			 
			I'm starting developping my own class who'll be
called in ProcessPanel with the <executeclass> tag.
			But I've no idea how can I have all the
installer's variables in my class ... 
			I've seen in the other panel that you give
installData in parameter but when you call with executeclass.
			The executeclass call a method
run(AbstractUIProcessHandler handler, String[] args) so I don't have the
installData.
			 
			Any idea?
			 
			Thx in advance,
			 
			Regards
			 
			P.S. : Sorry for my bad english...
			 

			-- 
			Lionel 


		_______________________________________________
		izpack-devel mailing list
		izpack-devel at lists.berlios.de 
		https://lists.berlios.de/mailman/listinfo/izpack-devel
		
		

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/izpack-devel/attachments/20080108/08dac57c/attachment-0001.html 


More information about the izpack-devel mailing list