ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: Error in <jar> found?
Date Thu, 23 Jan 2003 08:47:31 GMT
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:bodewig@apache.org]
Gesendet am: Donnerstag, 23. Januar 2003 09:39
An: ant-dev@jakarta.apache.org
Betreff: Re: Error in <jar> found?

On Thu, 23 Jan 2003, Jan Materne <Jan.Materne@rzf.fin-nrw.de> 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:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message