ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manju Sarala Viswam <>
Subject passing parameters to ant
Date Wed, 13 Aug 2003 08:02:58 GMT
        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();
                taskType = "ant";
                taskName = "ant";
                setDir(new File(buildFile));

                project.addBuildListener(new AntListener());

        public static void main (String []args){
                RunningAnt Ra = new RunningAnt("D:\\rtf\\tests\\");


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


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message