Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 43602 invoked from network); 23 Apr 2002 07:32:03 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 23 Apr 2002 07:32:03 -0000 Received: (qmail 29173 invoked by uid 97); 23 Apr 2002 07:32:04 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 29157 invoked by uid 97); 23 Apr 2002 07:32:04 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 29146 invoked from network); 23 Apr 2002 07:32:03 -0000 Message-ID: <002601c1ea99$1bc66fd0$0100a8c0@jose> From: "Jose Alberto Fernandez" To: "Ant Developers List" References: <20020422105656.49684.qmail@web10801.mail.yahoo.com> Subject: Re: cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional XMLValidateTask.java Date: Tue, 23 Apr 2002 08:33:04 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N From: "Stefan Bodewig" > On Mon, 22 Apr 2002, Jose Alberto Fernandez > wrote: >=20 > > Well, most of this tasks had some hardcoded class in > > case JAXP was not available >=20 > If JAXP is not available, Ant won't run 8-) >=20 > Are there any other tasks with hardcoded parser names? >=20 I do not know about hardcoded names, but in particular with all the J2EE tasks (e.g., ejbjar, etc.) there are more and more tasks that need to = perform XML parsing. ANT already found the parser factory. Why not just allow any task to just ask ANT to provide a parser instance for you to use? > > additionally using the JAXP api is a real pain in the butt :-) >=20 > Could be worse, coverting was rather easy. >=20 > > shouldn't we be nice and give them a one method call that everybody > > can use? >=20 > Maybe a class in our util package to remove the copy-paste reuse > between ProjectHelperImpl and XMLValidateTask. >=20 +1 Jose Alberto -- To unsubscribe, e-mail: For additional commands, e-mail: