Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 83518 invoked from network); 17 Aug 2000 16:12:19 -0000 Received: from exchange.gforcesystems.com (HELO mail.learncom.com) (63.98.99.15) by locus.apache.org with SMTP; 17 Aug 2000 16:12:19 -0000 Received: by MAIL with Internet Mail Service (5.5.2650.21) id ; Thu, 17 Aug 2000 09:11:57 -0700 Received: from gforce.com (216.203.191.76 [216.203.191.76]) by mail.learncom.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id RA2K28HC; Thu, 17 Aug 2000 09:10:22 -0700 From: Mark Rose To: ant-dev@jakarta.apache.org Message-ID: <399C0EF2.18E9DDE@gforce.com> Date: Thu, 17 Aug 2000 09:12:34 -0700 X-Mailer: Mozilla 4.61 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 Subject: Re: [PATCH] Several improvements to Zip and Jar tasks References: <2561BD1655ADD2119E230008C75D96A904527730@emily.barclaycard.co.uk> <399BCC64.B3A87AF3@netbeans.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Jesse Glick wrote: > [...] > The Zip task could easily log a warning and exit early if no files > match, instead of letting it run to the point of giving a BuildException > (and halting the build). (This behavior should be disabled in the Jar > task.) But there should at least be a warning I think. Or it would > probably not be hard to create an empty zip file (bypassing > java.util.zip, just hardcoding the contents; see attached prototype, > constructed in a hex editor acc. to PKZIP spec). Other opinions? Generally, I'd prefer all tasks to fail and halt the build if there's any sort of problem, since we have builds that generate hundreds or thousands of lines of logging. I don't want to have to grep the log to see if there were problems. (E.g., I'd rather have "failonerror" default to "true" for ) I would be willing to explicitly request this, by setting "failonerror"--or some attribute--on each task. Perhaps all tasks should have some way to specify whether or not to fail on errors? (Like "-" or "-i" in make.) Generating an empty .zip is most likely an error, for the build.xml files I've created, so I'd prefer it halt the build, by default. Mark -- Mark Rose gForce 408.213.2211 Enterprise eLearning Solutions mailto:mark@gforce.com Get there faster. http://www.gforce.com