ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: how to fail on valid zip file
Date Fri, 08 Oct 2004 13:51:37 GMT
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:jbacon@magmic.com]
> 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
> jbacon@magmic.com
> Creative Developer
> http://www.magmic.com
> 
> 

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