Ok. Thanks that helps.

Now this leads into another question.  The Project.topoSort and
Project.getTargets gets me all targets and their tasks but what if someone
does an 'antcall' task?  How would I go about handling that?  It looks like
Ant doesn't know anything about this task until it executes it.  How do I
get information about what targets/tasks it might be calling?

Thanks.
Mike

-----Original Message-----
From: Stefan Bodewig [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 9:41 AM
To: [EMAIL PROTECTED]
Subject: Re: Getting the complete build.xml?


On Wed, 25 Jun 2003, Mike Mazzolini <[EMAIL PROTECTED]>
wrote:

>       When Ant starts, does it parse the entire XML file before
>       running any tasks?

Yes.

>       In other words does it build a DOM object or does it use SAX?

Not the same question.  Ant uses SAX.

>       I'm looking to get the entire list of Targets and Tasks for a
>       particular build in order to display them on the web or some
>       other interface.

See Project.getTargets for all targets in the project and
Project.topoSort to get the sorted list of targets that are going to
be executed.

Stefan

---------------------------------------------------------------------
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]

Reply via email to