Maybe I have found the error:

Zip.execute() has:
        if (baseDir == null && filesets.size() == 0
            && groupfilesets.size() == 0 && "zip".equals(archiveType)) {
            throw new BuildException("basedir attribute must be set, "
                                     + "or at least "
                                     + "one fileset must be given!");
        }

and I think the "archiveType" is not "zip" is "jar".
Yep - Jar.java overwrited that variable in its constructor.

Maybe you can set the basedir to the current directory (and excludes the
archive itself).



Jan Matčrne


-----Ursprüngliche Nachricht-----
Von: Stefan Bodewig [mailto:[EMAIL PROTECTED]
Gesendet am: Donnerstag, 23. Januar 2003 09:39
An: [EMAIL PROTECTED]
Betreff: Re: Error in <jar> found?

On Thu, 23 Jan 2003, Jan Materne <[EMAIL PROTECTED]> wrote:

> Bug in JarTask or in Doc?

In Jar.  basedir should be required if you don't specify nested
filesets.

Stefan

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to