[izpack-users] AntActionInstallerListener deletes files added

Magnus Heino magnus at filur.org
Wed Jan 23 10:21:22 CET 2008


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/20080123/bc034ada/attachment.html 


More information about the izpack-users mailing list