Justin Sampson <[EMAIL PROTECTED]> wrote:

> The problem was during a jar task which was building a jar of a
> directory in the directory itself:
> 
>     <jar jarfile="foo/foo.jar" basedir="foo" />
> 
> Ant seemed to be trying to include the jar file in itself, giving
> the error "A zip file cannot include itself". The jar didn't exist
> before running

But when the directory gets scanned, it does (because the file has
already been opened for writing).

> But I'm wondering if this is a bug, and what has changed from 1.2.

The opposite of a bug. It is a bug of Ant 1.2 to not raise an exception
if you try to include a zip file into itself.

Stefan

Reply via email to