Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 68045 invoked from network); 4 Nov 2010 20:22:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Nov 2010 20:22:48 -0000 Received: (qmail 44498 invoked by uid 500); 4 Nov 2010 20:23:19 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 44324 invoked by uid 500); 4 Nov 2010 20:23:18 -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 44316 invoked by uid 99); 4 Nov 2010 20:23:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 20:23:18 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ddevienne@gmail.com designates 209.85.214.45 as permitted sender) Received: from [209.85.214.45] (HELO mail-bw0-f45.google.com) (209.85.214.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 20:23:10 +0000 Received: by bwz2 with SMTP id 2so2002320bwz.4 for ; Thu, 04 Nov 2010 13:22:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=SeZN2ZkoUPe+MIaxj2pe/LB/M68pt9C0wBf1TGen2lI=; b=xzLfE6PCzMT4dV0WeiXo5NAaDFGaIGE1cnCiDufL4T4KILGWJb8ZNes5ybQq7A+I1f Jo8A3vyVZ4bvJDhVuYPRMq6eil25xRFrodV1f6XHkE5lkefLYuf0EIJPtloEWlQBLb+T W508xxn8E1sCK7ox7S8LCeSN2PFsGo5/ZKpcw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Xq2snF27hCtOZYnGaz3cLgWLwNa1bkycDbJMDNnXH3lASYQzg97mmNHVIqAe1dn/3V f0cJKzbby8YeODqcJFL/SzyQu2m5BvuB0VDkoqO1etuWMlPqNbFYY0VYyabB5hE19knQ Yku9pNaVzXXyEXQ5JnB2LaRHA5ZGEL+fWC4yg= MIME-Version: 1.0 Received: by 10.204.50.209 with SMTP id a17mr1043004bkg.65.1288902062003; Thu, 04 Nov 2010 13:21:02 -0700 (PDT) Received: by 10.204.117.76 with HTTP; Thu, 4 Nov 2010 13:21:01 -0700 (PDT) In-Reply-To: <1288901391332-3250792.post@n5.nabble.com> References: <1288806002556-3248855.post@n5.nabble.com> <1288900388210-3250761.post@n5.nabble.com> <4CD3123F.4000501@symyx.com> <1288901391332-3250792.post@n5.nabble.com> Date: Thu, 4 Nov 2010 15:21:01 -0500 Message-ID: Subject: Re: Problems creating my own ant task From: Dominique Devienne To: Ant Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Nov 4, 2010 at 3:09 PM, abridgel wrote: > We need to write our own tasks because of portability issues. So I need t= o be > able to source in the task somehow > > I created the jar and put the classes and antlib.xml in the same director= y > however when I try to pull it in it is complainning with the above error = - > here is my code (for the task)- its very simple. > > import java.io.*; > import java.util.*; > > import org.apache.tools.ant.Task; > > public class Diff extends Task{ > =A0 =A0public void execute() { > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0System.out.println("Hello"); > =A0 =A0} > } There are several inconsistencies in the information you posted so far. Some may be typos (like takks vs tasks) and others like the lack of a package declaration in the code you posted above, when your antlib declaration assumes a hello.tasks package, are more likely your problem. Read up on packages, classpaths, etc... and you should be able to figure it out I think. --DD --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org