ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Louis Boudart <>
Subject Querying ant context
Date Mon, 09 Nov 2009 12:28:49 GMT
Hi there,

The new abstraction layer on ProjectHelper is awesome !

But now i'm wondering how can we make (in a generic way) reports for our
There were a few existing projects (AntDoc for example) but there were all
XML based.
What solution could we use to generate such report?

I've tried to play with the infos accessible in the Project instance.
It seems that we are able to access every task used/defined in a target
(using the method getTasks() on Here we can have a lot of
However it seems that we're not able to access all tasks defined outside of
the target.
A quick example:

    <import file="myfile"/>

    <target name="foobar">

Here we're not able to know the task defined outside the target (import,
myTask in the previous example).
All this tasks seems to be attached to a virtual target (a target without
name) referenced by the XMLContext instance which is all the time
overwritten during <import>.
Did i miss something?

Any idea of how this could be done?

Thanks for you help.

Jean Louis Boudart
Independent consultant
Project Lead

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