[izpack-users] AntActionInstallerListener deletes files added

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


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?


I add listeners like this:

        <listener installer="AntActionInstallerListener"
uninstaller="AntActionUninstallerListener" />

My spec.xml looks like this:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <pack name="Eclipse IDE">
        <antcall order="afterpack"
            <property name="install.dir" value="$INSTALL_PATH" />
            <target name="unpackArchive" />

And my ant file:

<?xml version="1.0"?>
<project name="antExtensions" basedir=".">
    <condition property="os.unix" value="true">
        <os family="unix" />

    <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" />


 /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