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 16406 invoked from network); 28 May 2000 00:21:18 -0000 Received: from mailout3-0.nyroc.rr.com (HELO mailout3.nyroc.rr.com) (24.92.226.118) by locus.apache.org with SMTP; 28 May 2000 00:21:18 -0000 Received: from base (ith1-4b4.twcny.rr.com [24.92.237.180]) by mailout3.nyroc.rr.com (8.9.3/8.9.3) with SMTP id UAA23021 for ; Sat, 27 May 2000 20:13:58 -0400 (EDT) Message-ID: <001d01bfc83c$3fbe6ae0$b4ed5c18@twcny.rr.com> From: "Bill Barnhill" To: References: <20000527222110.87223.qmail@locus.apache.org> Subject: Re: Available task status and question Date: Sat, 27 May 2000 20:32:47 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Status: The AvailableEx task will be done by end of weekend. Named AvailableEx for now, because it is not really an extension of Available but a task that does what Available does in a different way. This can handle anything Available can, but also handles checking for multiple files, resources, and classes. Added one item to core file ProjectHelper, an invocation of setGeneric(String attr, String value) if that method exists in the task and no setter for the current attribute is found. AvailableEx treats any attribute coming in this way as a list of items to check availability of. The attribute name is used to get the class to actually do the check and if the class is in the classpath it is used (if not a warning is logged and that attribute ignored). Any check can have one item or a comma delimited list of items. Also it maintains a count of checked and found items and will set the property depending on which case occurs : All items found, No items found, more found than not, more not found than were. The value to set the property to is settable for each case and defaults to true,false,false,false respectively. I'll post several examples when I post the files. Question: Ithought Ant was designed for jdk1.2.x and greater and then I saw where it checks the version and only says ant is incompatible if version is 1.0. I am currently using the jdk1.2 Collection API and would like to keep using it, but if I have to maintain total compatibility with 1.1.x then I should probably convert my code to use the 1.1 classes only and not take advantage of the new API. There is a question in there...Can I use 1.2 or higher classes in ant, or only 1.1 compatible? Thanks in advance, Bill Barnhill