Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 37267 invoked from network); 9 Nov 2005 15:40:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Nov 2005 15:40:08 -0000 Received: (qmail 45741 invoked by uid 500); 9 Nov 2005 15:40:02 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 45699 invoked by uid 500); 9 Nov 2005 15:40:01 -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 45688 invoked by uid 99); 9 Nov 2005 15:40:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2005 07:40:01 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [17.250.248.97] (HELO smtpout.mac.com) (17.250.248.97) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2005 07:39:54 -0800 Received: from mac.com (smtpin02-en2 [10.13.10.147]) by smtpout.mac.com (Xserve/8.12.11/smtpout06/MantshX 4.0) with ESMTP id jA9FddtU017347 for ; Wed, 9 Nov 2005 07:39:39 -0800 (PST) Received: from [10.0.1.2] (cpc2-nthc3-3-1-cust233.nrth.cable.ntl.com [82.24.177.233]) (authenticated bits=0) by mac.com (Xserve/smtpin02/MantshX 4.0) with ESMTP id jA9Fdbd7020503 for ; Wed, 9 Nov 2005 07:39:39 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v746.2) Content-Transfer-Encoding: 7bit Message-Id: <22D3D723-A64E-486E-9811-1C8C5EBFF184@mac.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: Ant Users List From: Ashley Williams Subject: Creating an ant task from xml fragment Date: Wed, 9 Nov 2005 15:39:32 +0000 X-Mailer: Apple Mail (2.746.2) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I have a fragment of ant xml and would like to create a task or target from it in my java code. For example here is the xml text: And from the xdoclet website the ejb doclet class is: xdoclet.modules.ejb.EjbDocletTask, which I believe will help form a taskdef. So from these two pieces of information, can I create the corresponding task/target that I can run in my code? Also can I run a task on its own or does it have to be in a target? Any pseudo code inside the following method would be very helpful - although the less pseudo the better ;) Target createTarget(Node xml, Class taskdefClass) { } Thanks - AW --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org