Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 61922 invoked from network); 27 Nov 2000 17:21:56 -0000 Received: from bodewig.bost.de (root@195.227.98.11) by locus.apache.org with SMTP; 27 Nov 2000 17:21:56 -0000 Received: (from bodewig@localhost) by bodewig.bost.de (8.9.3/8.9.3) id RAA09488; Mon, 27 Nov 2000 17:54:19 +0100 X-Authentication-Warning: bodewig.bost.de: bodewig set sender to bodewig@apache.org using -f To: ant-user@jakarta.apache.org Subject: Re: Unexpected element "available" References: From: Stefan Bodewig Date: 27 Nov 2000 17:54:19 +0100 In-Reply-To: Rasmus Rasmussen's message of "Mon, 27 Nov 2000 16:52:26 +0100" Message-ID: Lines: 32 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Rasmus Rasmussen wrote: > Hello there, > > I'm using task "available" like this > > property="Myclass.present" /> > > and get the error > > Unexpected element "available" > > I verified that the classfile resides in ant.jar. Other tasks in > ant.jar are obviously accessed successfully. What am i doing wrong? Usually Ant would tell you it couldn't find the task definition if it was a CLASSPATH problem. This looks more like a problem in the document structure of your XML file, i.e. is probably not nested inside a (or this one is not nested into a ). The most common error I find in my own buildfiles is that I close tags by accident, something like could cause an error like the one you've reported (remove the slash in the start tag of ). Stefan