ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Alberto Fernandez" <jalbe...@cellectivity.com>
Subject RE: Ant introspection and property resolution
Date Tue, 01 Jun 2004 09:52:35 GMT
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:Ashwins@infics.com] 
> Sent: 01 June 2004 06:39
> To: dev@ant.apache.org
> 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: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message