Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 79611 invoked from network); 3 Apr 2004 21:19:08 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 3 Apr 2004 21:19:08 -0000 Received: (qmail 51588 invoked by uid 500); 3 Apr 2004 21:18:48 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 51497 invoked by uid 500); 3 Apr 2004 21:18:48 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 51484 invoked from network); 3 Apr 2004 21:18:47 -0000 Received: from unknown (HELO moutng.kundenserver.de) (212.227.126.177) by daedalus.apache.org with SMTP; 3 Apr 2004 21:18:47 -0000 Received: from [212.227.126.208] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1B9sXU-0004e1-00 for user@ant.apache.org; Sat, 03 Apr 2004 23:18:52 +0200 Received: from [80.128.237.114] (helo=ENITSYSMOB0001) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1B9sXU-0008UN-00 for user@ant.apache.org; Sat, 03 Apr 2004 23:18:52 +0200 Reply-To: From: "Rainer Noack" To: "'Ant Users List'" Subject: RE: how can i undeclare taskdef? Date: Sat, 3 Apr 2004 23:19:02 +0200 Message-ID: <003301c419c1$4a28d8f0$037ba8c0@ENITSYSMOB0001> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal In-Reply-To: <1081026241.406f26c1d1f74@webmail.goodconsultants.com> X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:a278c2346575d530eb0d775cc9a340ba X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Barry, I'm not sure in 1.6 but there should be no problems with declaring the same task twice as this should be ignore if the same class (from the same classloader) is using. As you're using the implicitely creation of an own classloader for this task, this may be the problem. (there is a magic property that controls reuse of classpath classloaders but i've forgotten it's name.) however, you can place your taskdef inside a target (like init) and use the depends attribute to make sure it runs only once. AFAIK you can not undeclare a taskdef but you can "redeclare" it (maybe with a dummy). Regards Rainer > -----Original Message----- > From: barry@goodconsultants.com [mailto:barry@goodconsultants.com] > Sent: Saturday, April 03, 2004 11:04 PM > To: ant > Subject: how can i undeclare taskdef? > > > All, > > I have problems with taskdef being ran twice or more. How can > i avoid the > situation? Where should I place my taskdef? > > Can i actually "undeclare" what has been defined? I am interested in > undeclaring the "jasper2" task. > > Thanks > > Barry > > Here is the related code: > > onerror="ignore"> > > > > > > > > > > > > > > > uriroot="${basedir}/${precom-webapp.path}" > webXmlFragment="${basedir}/${precom-webapp.path}/WEB- > INF/generated_web.xml" > > outputDir="${basedir}/${precom-webapp.path}/WEB-INF/src" /> > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org