[izpack-users] Log4j Integration in IzPack

Bartz, Klaus Klaus.Bartz at coi.de
Thu Sep 27 09:35:03 CEST 2007


Hi Suresh,
the way using the jar file as container for own properties files is a
work-around. Normally
IzPack only supports resources in a special subdir named "res", you
know.
If you would add something to a jar file use the jar program. Also
possible is to use a zipper.
For replacing a particular file in a jar, war, ear we use on Windows the
total comander. With
it it is possible e.g. to change a log level in a properties file in a
jar file "on the fly", not needed
a rebuild of the installer.
If it is a often recurring an ant process can help for the build and
there it is no problem to 
create a jar which contains the properties etc.
To do it is not mission of an installer builder, you see. 
 
Cheers
 
Klaus

	-----Original Message-----
	From: izpack-users-bounces at lists.berlios.de
[mailto:izpack-users-bounces at lists.berlios.de] On Behalf Of Suresh Reddy
	Sent: Wednesday, September 26, 2007 6:05 PM
	To: izpack-users at lists.berlios.de
	Subject: Re: [izpack-users] Log4j Integration in IzPack
	
	
	Hi Klaus,
	
	Thanks for the information. I tried this and it worked for me
:-)
	But, adding properties  file to jar is not ok; I mean, every
time I modify the log level in properties file I need to archive it.
	Can't we the files (not only properties but, any other format)
directly?? 
	
	Thanks & Regards,
	Suresh
	
	
	
	
	On 9/26/07, Bartz, Klaus <Klaus.Bartz at coi.de> wrote: 

		Hi Suresh,
		put the properties into a jar file and add it also as
jar
		<jar src="./IzPack/lib/log4j.jar" stage="both" /> 
		<jar src="./myproject/lib/myprops.jar" stage="both" />
		
		Cheers
		
		Klaus
		
		> -----Original Message-----
		> From: izpack-users-bounces at lists.berlios.de
		> [mailto:izpack-users-bounces at lists.berlios.de] On
Behalf Of sureshrk19
		> Sent: Tuesday, September 25, 2007 7:14 PM 
		> To: izpack-users at lists.berlios.de
		> Subject: [izpack-users] Log4j Integration in IzPack
		>
		>
		>
		> Hi,
		>
		> I'm trying to integrate log4j with IzPack; 
		> I specified the log4j.jar in classpath (in
install.xml) as follows:
		>
		> <jar src="./IzPack/lib/log4j.jar" stage="both" />
		>
		> My requirement is to automate the build process... 
		>
		> If I add log4j.properties to the jar (install.jar)
manually
		> everything works
		> fine; but, I didn't find a way to add the
log4j.properties
		> file to the build process (to be picked up added to
install.jar).
		>
		> If I add the properties file in resources section, as
follows....
		>
		> <resources>
		>               <res id="log4j.properties"
src="./log4j.properties" /> 
		> ...
		> </resources>
		>
		> It is getting added in "res" section of install.jar; I
didn;t
		> find any other way to add log4j.properties directly to
the
		> install.jar.
		> 
		> Any inputs will be highly appreciated.
		>
		> Thanks & Regards,
		> Suresh
		> --
		> View this message in context:
		>
http://www.nabble.com/Log4j-Integration-in-IzPack-tf4516129.ht
		ml#a12881463
		Sent from the izpack users mailing list archive at
Nabble.com.
		
		_______________________________________________ 
		izpack-users mailing list
		izpack-users at lists.berlios.de
		https://lists.berlios.de/mailman/listinfo/izpack-users 
		_______________________________________________
		izpack-users mailing list
		izpack-users at lists.berlios.de
		https://lists.berlios.de/mailman/listinfo/izpack-users
		




	-- 
	Regards
	Suresh 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/izpack-users/attachments/20070927/cca1e363/attachment.html 


More information about the izpack-users mailing list