Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 79683 invoked from network); 27 May 2008 08:20:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 May 2008 08:20:27 -0000 Received: (qmail 59728 invoked by uid 500); 27 May 2008 08:20:23 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 59657 invoked by uid 500); 27 May 2008 08:20:23 -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 59617 invoked by uid 99); 27 May 2008 08:20:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 May 2008 01:20:23 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chris.green100@googlemail.com designates 209.85.200.170 as permitted sender) Received: from [209.85.200.170] (HELO wf-out-1314.google.com) (209.85.200.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 May 2008 08:19:33 +0000 Received: by wf-out-1314.google.com with SMTP id 23so2081080wfg.10 for ; Tue, 27 May 2008 01:19:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=Jo9psUHQTne+d6IjollqikBAIvNUhVFSyMxlUXxQUQg=; b=xAgLF2fxP/gi9AZtA6bdggdbHmeDD79k3OwWxXwC8jEbCzLl5p9p8OV6/5tSHiL9D2uNCm5FriDch0i8sT6AmRNmxLCvZNlBHBPB3jHU8mNPXCYtbiaBqCXt2eUG8OXodbK47xhXldJqJffk6xGjljLaniiAISoJtxDt+S488UA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=U6lN6ka3Ehmjm2DLy0JXKaWrwozN8r6SKDbMknbWFR8pCChr9oxa/SdH+BQIh+TwjH5VGeV3l3fqnBoPlt0yXv9ed/PT0xZVN6yN+srph99PrZSniIGEel6FImm4FQag6QVqeSyESjUGQxrxqVLfgiDEVfhi/b/gAH4lRiYnje0= Received: by 10.143.159.9 with SMTP id l9mr393763wfo.100.1211876389273; Tue, 27 May 2008 01:19:49 -0700 (PDT) Received: by 10.143.29.2 with HTTP; Tue, 27 May 2008 01:19:49 -0700 (PDT) Message-ID: Date: Tue, 27 May 2008 10:19:49 +0200 From: "Chris Green" To: "Ant Users List" Subject: Re: Re setting a variable to a new value. Cc: olivier.gies@bull.net, avijayr@gmail.com In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24131_10503095.1211876389235" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_24131_10503095.1211876389235 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline In principle, it works but it can't load the definitions from the antlib.xm= l because it can't find it. Where do I get it from ? It doesn't exist within the ant-contrib-0.3.jar Chris On Tue, May 27, 2008 at 3:49 AM, Olivier Gies wrote= : > Oops, a typo when I sent my answer: is missing an 'e' in > your build.xml, i.e. " > -----Message d'origine----- > De : Chris Green [mailto:chris.green100@googlemail.com] > Envoy=E9 : lundi 26 mai 2008 22:34 > =C0 : Ant Users List; avijayr@gmail.com > Cc : olivier.gies@bull.net > Objet : 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 > > > > > > > > > > > > > > > classpathref=3D"project.classpath"/> > > > > > > > location=3D"c:/ant/lib/ant-contrib-0.3.jar"/> > > > > > > value=3D"${oracle.xlclient}/ext"/> > value=3D"${oracle.xlclient}/lib"/> > > 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, 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 > >> > >> resource=3D"net/sf/antcontrib/antcontrib.properties" > >> /> > >> > >> > >> > >> > >> >> 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 > >> place. > >> > >> Before you ask, ant-contrib-0.3.jar does exist in my c:/ant/lib > >> 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 is undefined. > >>> > Action: Check the spelling. > >>> > Action: Check that any custion tasks/types have been declared. > >>> > Action: Check that any /macrodef> declarations have tak= en > >>> 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 > >>> 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 other= s > >>> or forwarding without express permission is strictly prohibited. If y= ou > >>> are not the intended recipient, please contact the sender and delete > all > >>> copies.* > >>> > >>> > >>> --------------------------------------------------------------------- > >>> 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 > >> > >> > > > > --------------------------------------------------------------------- > 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 > > ------=_Part_24131_10503095.1211876389235--