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 13267 invoked from network); 16 Sep 2000 18:27:13 -0000 Received: from natmail2.webmailer.de (HELO post.webmailer.de) (192.67.198.65) by locus.apache.org with SMTP; 16 Sep 2000 18:27:13 -0000 Received: from ns2000 (pec-10-19.tnt1.hh2.uunet.de [149.225.10.19]) by post.webmailer.de (8.9.3/8.8.7) with SMTP id UAA25267 for ; Sat, 16 Sep 2000 20:27:11 +0200 (MET DST) Message-ID: <00da01c0200b$eb581000$130ae195@ns2000> From: "Nico Seessle" To: Subject: [PATCH] Available.java Date: Sat, 16 Sep 2000 20:02:56 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0059_01C02019.1B419D10" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------=_NextPart_000_0059_01C02019.1B419D10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Make sure that property and on of classname, file or resource are set before execution. ------=_NextPart_000_0059_01C02019.1B419D10 Content-Type: application/octet-stream; name="Available.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="Available.patch" Index: main/org/apache/tools/ant/taskdefs/Available.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: = /home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Availa= ble.java,v retrieving revision 1.10 diff -u -r1.10 Available.java --- main/org/apache/tools/ant/taskdefs/Available.java 2000/09/14 = 10:49:54 1.10 +++ main/org/apache/tools/ant/taskdefs/Available.java 2000/09/16 = 17:48:40 @@ -93,6 +93,14 @@ } =20 public void execute() throws BuildException { + if (property =3D=3D null) { + throw new BuildException("property attribute is required", = location); + } + + if (classname =3D=3D null && file =3D=3D null && resource = =3D=3D null) { + throw new BuildException("At least one of = (classname|file|resource) is required", location); + } + if ((classname !=3D null) && !checkClass(classname)) return; if ((file !=3D null) && !checkFile(file)) return; if ((resource !=3D null) && !checkResource(resource)) return; ------=_NextPart_000_0059_01C02019.1B419D10--