in unit tests you would do
try {
test...
fail();
} catch {
// fine
}
so you can use AntContrib for that
<trycatch>
<try>
<unzip/>
<fail/>
</try>
</trycatch>
Jan
> -----Urspr�ngliche Nachricht-----
> Von: Jeffrey Bacon [mailto:[EMAIL PROTECTED]
> Gesendet am: Freitag, 8. Oktober 2004 15:46
> An: Ant Users List
> Betreff: how to fail on valid zip file
>
> During my build process, I want to test a file to see if it
> is a valid
> ZIP file. However, I want to FAIL if it IS valid and succeed
> if it is
> NOT valid. Is there some way I can do this with the unzip task?
> --
> Jeffrey Bacon
> [EMAIL PROTECTED]
> Creative Developer
> http://www.magmic.com
>
>