Depends on the task. Easiest way is to instantiate a task, use its setters for setting the <task attributes/> and call execute().
Have a look at the test classes. Find one which does not extend BuildFileTest then youŽll find examles about that. Jan > -----Original Message----- > From: Sumeet Luthra [mailto:[EMAIL PROTECTED] > Sent: Friday, June 04, 2004 6:18 AM > To: [EMAIL PROTECTED] > Subject: Running a ant task from Java Class > > > hi, > > I have a situtaion where i need to call an ANT task from with > in a java class. > > I would like to know how this can be done. > > -Sumeet > > >