Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 49544 invoked by uid 500); 13 Aug 2003 08:03:01 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 49513 invoked by uid 500); 13 Aug 2003 08:03:00 -0000 Received: (qmail 49492 invoked from network); 13 Aug 2003 08:03:00 -0000 Received: from unknown (HELO srv-nl-msweep0.vanenburg.com) (212.241.36.10) by daedalus.apache.org with SMTP; 13 Aug 2003 08:03:00 -0000 Received: from ex-nl-u0.vanenburg.com (unverified) by srv-nl-msweep0.vanenburg.com (Content Technologies SMTPRS 4.3.10) with ESMTP id ; Wed, 13 Aug 2003 10:06:18 +0200 Received: by ex-nl-u0.vanenburg.com with Internet Mail Service (5.5.2653.19) id ; Wed, 13 Aug 2003 10:03:09 +0200 Message-ID: From: Manju Sarala Viswam To: 'Ant Users List' , ant-user@jakarta.apache.org Subject: passing parameters to ant Date: Wed, 13 Aug 2003 10:02:58 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C36171.4F1E4B50" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C36171.4F1E4B50 Content-Type: text/plain; charset="iso-8859-1" Hi, I am using ant API and executing ant task from Java as shown below. I want to pass few parameters to ant build file.How do I do it ? public class RunningAnt extends Ant { public RunningAnt(String buildFile) throws BuildException { project = new Project(); project.init(); taskType = "ant"; taskName = "ant"; setDir(new File(buildFile)); setAntfile(buildFile+"\\build.xml"); project.addBuildListener(new AntListener()); } public static void main (String []args){ RunningAnt Ra = new RunningAnt("D:\\rtf\\tests\\"); Ra.execute(); } } Thanks Manju ********************************************************************** The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error. ********************************************************************** ------_=_NextPart_001_01C36171.4F1E4B50--