[izpack-users] AntActionInstallerListener deletes files added

Magnus Heino magnus at filur.org
Thu Jan 31 13:28:20 CET 2008


I just changed to 3.11.0-beta2 and things started working.

Now the web installer type is broken though, the jars's created for each
pack has broken names... :-P

/Magnus

On Jan 24, 2008 9:04 AM, Bartz, Klaus <Klaus.Bartz at coi.de> wrote:

>  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
>
>
> _______________________________________________
> izpack-users mailing list
> izpack-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/izpack-users
>
>


-- 

 /Magnus Heino
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/izpack-users/attachments/20080131/85dab2f4/attachment.html 


More information about the izpack-users mailing list