ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: AW: How to know if a perticular macro is defined or not
Date Thu, 17 Dec 2009 06:54:02 GMT
>It may be good idea to have api to know the list of macros 
>available too (it
>may be of help in few other contexts than this).

     * Return the current task definition hashtable. The returned
hashtable is
     * &quot;live&quot; and so should not be modified.
     * @return a map of from task name to implementing class
     *         (String to Class).
    public Hashtable getTaskDefinitions() {

List allAvailableTasks = getProject().getTaskDefinitions().keySet();

There is no difference in a task 
- implemented in Java and loaded via <taskdef>/AntLib
- implemented in <scriptdef>
- implemented as <macrodef>


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message