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.

**********************************************************************

Reply via email to