Yes, Peter, I totally agree with you. However, I would expect that the XML elements and attributes are matched against some Java classes and calling them in the same order as does the Ant parser does, it would work. And actually it does with the above suggested statements. Of course, it depends on the way Ant it's implemented, but considering the team, I was sure they did a great job.
Cheers, Dan On Thu, Nov 6, 2008 at 1:18 PM, Peter Reilly <[EMAIL PROTECTED]>wrote: > Also be aware that the ant java code is not designed or created to be > used as a library. Ant java code is written to read and execute ant xml > scripts. > > Peter > > On Thu, Nov 6, 2008 at 12:53 PM, Mark Salter <[EMAIL PROTECTED]> > wrote: > > Steve Loughran wrote: > >> There's some coverage of it the Ant docs > >> http://ant.apache.org/manual/antexternal.html > >> > >> as usual, contributions to improve this -more examples etc- are welcome. > > > > Thanks Steve, certainly the advice given at the bottom of this page is > > probably most relevant to the OP:- > > > > " > > The question you are probably asking yourself at this point is: How > > would I know which classes and methods have to be called in order to set > > up a dummy Project and Target? The answer is: you don't. Ultimately, you > > have to be willing to get your feet wet and read the source code. The > > above example is merely designed to whet your appetite and get you > > started. Go for it! > > " > > > > -- > > Mark > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >