Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 60297 invoked from network); 27 May 2008 07:15:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 May 2008 07:15:22 -0000 Received: (qmail 68648 invoked by uid 500); 27 May 2008 07:15:19 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 68616 invoked by uid 500); 27 May 2008 07:15:19 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 68605 invoked by uid 99); 27 May 2008 07:15:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 May 2008 00:15:19 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [62.154.176.138] (HELO icon040.icongmbh.de) (62.154.176.138) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 May 2008 07:14:23 +0000 Received: from icsrv02.icongmbh.de (unknown [192.168.195.2]) by icon040.icongmbh.de (Postfix) with ESMTP id 0802010034 for ; Tue, 27 May 2008 08:47:52 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: AW: Re setting a variable to a new value. Date: Tue, 27 May 2008 08:47:51 +0200 Message-ID: <06080D44730F41428BAF2168FA8BDD8001F6E7BD@icsrv02.icongmbh.de> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Re setting a variable to a new value. Thread-Index: Aci/PZx7DW9WtSF2RCm6H/5Q2k5FPQAhukwg References: <483A8DD9.90303@bull.net> <483ABC25.9060107@gmail.com> From: "Knuplesch, Juergen" To: "Ant Users List" X-Virus-Checked: Checked by ClamAV on apache.org I too have sometimes problems with adding new tasks (e.g. antcontrib). = I solved it by adding the jars into the current ANT/lib-path. I still = havent find out why this sometimes fails. I use this to add antcontrib: My jarname is = D:/Programme/Ant/apache-ant-1.6.5/lib/ant-contrib-1.0b3.jar You use: ant-contrib-0.3.jar Is this the problem? --=20 J=FCrgen Knuplesch=20 -----Urspr=FCngliche Nachricht----- Von: Chris Green [mailto:chris.green100@googlemail.com]=20 Gesendet: Montag, 26. Mai 2008 16:34 An: Ant Users List; avijayr@gmail.com Cc: olivier.gies@bull.net Betreff: Re: Re setting a variable to a new value. As can be seen below, relevant code is at beginning outside of relevant = targets Skeleton Build.xml Hope this helps your means of grateful help. Chris On 5/26/08, Vijay Aravamudhan wrote: > A common mistake is to have the taskdef line within another target,=20 > but failing to call that target before actually using the tasks = defined in it. > Could you please post your complete build file so that we can take a = look? > > thanks, > Vijay > > Chris Green wrote: >> I alread had the taskdef in my ant script but added the typdef line >> >> > /> >> >> >> >> >> > location=3D"c:/ant/lib/ant-contrib-0.3.jar"/> >> >> >> >> Still get :- >> >> Problem: failed to create a task or type var >> Cause: The name is undefined. >> Action: Check the spelling. >> Action: Check that any custion tasks/types have been declared. >> Action: Check that any /macrodef> declarations have taken=20 >> place. >> >> Before you ask, ant-contrib-0.3.jar does exist in my c:/ant/lib=20 >> directory. I'm obviously being blind to something here. >> >> Chris >> >> On 5/26/08, Olivier Gies wrote: >> >>> > Problem: failed to create a task or type var > Cause: The name=20 >>> is undefined. >>> > Action: Check the spelling. >>> > Action: Check that any custion tasks/types have been declared. >>> > Action: Check that any /macrodef> declarations have=20 >>> taken place. >>> > >>> > Please could someone make a suggestion. >>> >>> >>> You haven't imported ant-contrib's tasks in your project. >>> >>> After making sure that ant-contrib's JAR is in your Ant's runtime=20 >>> classpath, add this to your root tag: >>> >>> >>> >>> >>> Calls to should now work, as well as to any ant-contrib's = task. >>> >>> BR, >>> >>> *Olivier Gies* >>> >>> *Delivery Manager >>> Customs & Tax Software Engineering Center Bull, Architect of an Open = >>> World ^TM >>> Phone: +86 (10) 65978001 - Ext 555 * >>> >>> *www.bull.com * >>> >>> *This e-mail contains material that is confidential for the sole use = >>> of the intended recipient. Any review, reliance or distribution by=20 >>> others or forwarding without express permission is strictly=20 >>> prohibited. If you are not the intended recipient, please contact=20 >>> the sender and delete all >>> copies.* >>> >>> >>> -------------------------------------------------------------------- >>> - To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For=20 >>> additional commands, e-mail: user-help@ant.apache.org >>> >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For=20 >> 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 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org