During ANT execution you have some limited access to the Project. I have script tasks that use this functionality get information about available targets and dependencies.
But you cannot take hold of everything. Jose Alberto > -----Original Message----- > From: Ashwin S. [mailto:[EMAIL PROTECTED] > Sent: 01 June 2004 06:39 > To: [EMAIL PROTECTED] > Subject: Ant introspection and property resolution > > > Is there a way of actually introspecting a build file via > ant. The introspection should help expose details such as > a) all targets in an build file > b) dependency trees for targets > > and many other such details that might be useful to seasoned > ant-users. > > I am envisaging its use as follows: > > a) > > cmdline> ant -showtargets [build.xml] > > Result: > > Found targets: > abc > xyz > > > b) > > cmdline> ant -dependencies [build.xml] > > target [abc] > - init > - check-ab > target [xyz] > - init > - abc > > > Also, is there a property resolver which allows an ant-user > to know what the real values of all properties used by any > target(s) would be at runtime? > > If these features don't exist, what do the folks here think > of it? Anyone interested in working on creating them?? > > > > Thanks & Regards, > Ash > > > Disclaimer: > > This email and any files transmitted with it are confidential > and intended solely for the individual or entity to which it > is addressed. If you have received this email in error please > notify the sender and delete this mail immediately. > > > > > > > > --------------------------------------------------------------------- > 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]