[izpack-users] AntActionInstallerListener deletes files added

Bartz, Klaus Klaus.Bartz at coi.de
Thu Jan 24 09:04:12 CET 2008


Hi Magnus,
I have written the AntActionInstallerListener, but I do not know why you
got the message boxes. I see no cause in IzPack for it. May be you can
debug it.
 
Cheers
 
Klaus

	-----Original Message-----
	From: izpack-users-bounces at lists.berlios.de
[mailto:izpack-users-bounces at lists.berlios.de] On Behalf Of Magnus Heino
	Sent: Wednesday, January 23, 2008 10:21 AM
	To: izpack-users at lists.berlios.de
	Subject: [izpack-users] AntActionInstallerListener deletes files
added
	
	

	Hi.
	
	I use AntActionInstallerListener to unpack a tar.gz file
(shouldn't <file unpack="true">  handle this btw?).
	
	My config is below. The problem I'm having is that all files
added or created in some way by ant, is removed after the pack is run. I
get a messagebox saying "Deleting file xxx" for every file added by ant.

	
	In the example below, and unpacks the eclipse archive, then I
get a msgbox for each file that says "Deleting..."...
	
	Why is this? How can I change this behaviour?
	
	/Magnus
	
	I add listeners like this: 
	
	    <listeners>
	        <listener installer="AntActionInstallerListener"
uninstaller="AntActionUninstallerListener" />
	    </listeners>
	
	My spec.xml looks like this: 
	
	<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
	<antactions>
	    <pack name="Eclipse IDE">
	        <antcall order="afterpack"
buildfile="$INSTALL_PATH/antExtensions.xml"> 
	            <property name="install.dir" value="$INSTALL_PATH"
/>
	            <target name="unpackArchive" />
	        </antcall>
	    </pack>
	</antactions> 
	
	And my ant file:
	
	<?xml version="1.0"?>
	<project name="antExtensions" basedir=".">
	    <condition property="os.unix" value="true">
	        <os family="unix" />
	    </condition>
	
	    <target name="unpackArchive" if="os.unix">
	        <untar compression="gzip" src="${install.dir
}/eclipse-jee-europa-fall2-linux-gtk.tar.gz" dest="${install.dir}" />
	        <delete
file="${install.dir}/eclipse-jee-europa-fall2-linux-gtk.tar.gz"
quiet="true" />
	    </target> 
	</project>
	
	-- 
	
	 /Magnus Heino 

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


More information about the izpack-users mailing list