You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ernst de Haan <er...@nl.euro.net> on 2002/06/11 10:19:22 UTC
Ant DOM [Was: access to task description?]
> is there a way to access the target description, maybe like this?
>
> <target name="build" description="Compiles main classes"
> depends="prepare">
> <echo message="${description}" />
Just thinking, perhaps a Document Object Model would be nice for Ant :-) Then
you could have properties like:
ant.project --> The current project
ant.project.name --> The name of the current project
ant.project.tasks --> All tasks in the current project
ant.currenttask --> The current task
ant.currenttask.name --> The name of the current task
ant.currenttask.description --> The description of the current task
:
This would be similar to the approach used in HTML (JavaScript/VBscript)
Some of these properties are currently already available as 'magic
properties'.
Ernst
--
Ernst de Haan
EuroNet Internet B.V.
"Come to me all who are weary and burdened
and I will give you rest" -- Jesus Christ
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>