In that case I would also REALLY appreciate the following:

  ant.project.tasks.dependencies --> The dependencies of a task
  ant.currenttask.parent --> The parent (caller) of the current task

That would reduce the size of my build.xml by 50% !

-----Ursprungliche Nachricht-----
Von:    Ernst de Haan [SMTP:[EMAIL PROTECTED]]
Gesendet am:    Dienstag, 11. Juni 2002 10:19
An:     Ant Users List; Hertel, Oliver
Betreff:        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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to