ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manju Sarala Viswam <mvis...@vanenburg.com>
Subject passing parameters to ant
Date Wed, 13 Aug 2003 08:02:58 GMT
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.

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


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