Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 8439 invoked from network); 9 Aug 2006 20:20:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Aug 2006 20:20:49 -0000 Received: (qmail 41170 invoked by uid 500); 9 Aug 2006 20:20:46 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 41008 invoked by uid 500); 9 Aug 2006 20:20:45 -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 40996 invoked by uid 99); 9 Aug 2006 20:20:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Aug 2006 13:20:45 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [198.71.73.25] (HELO mx2.nuance.com) (198.71.73.25) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Aug 2006 13:20:43 -0700 Received: from unknown (HELO pb-exchcon2.nuance.com) ([10.1.4.118]) by mx2.nuance.com with ESMTP; 09 Aug 2006 16:20:22 -0400 X-IronPort-AV: i="4.08,107,1154923200"; d="scan'208,217"; a="6204521:sNHT46019302" Received: by pb-exchcon2.pb.scansoft.com with Internet Mail Service (5.5.2658.27) id ; Wed, 9 Aug 2006 16:20:22 -0400 Message-ID: From: "Tzabari, Gili" To: Ant Users List Subject: Custom task invoking other tasks Date: Wed, 9 Aug 2006 16:20:21 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2658.27) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6BBF1.3D6C1EEA" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C6BBF1.3D6C1EEA Content-Type: text/plain Hi, I'd like my custom task to invoke the Java task. Do I simply construct a new instance of org.apache.tools.ant.taskdefs.Java and execute() it? Or is there a nicer convention for chaining tasks programmatically (not in the build.xml side, but rather on the Java end)? Thanks, Gili ------_=_NextPart_001_01C6BBF1.3D6C1EEA--