On 14 tra, 23:48, Meikel Brandmeyer <m...@kotka.de> wrote:

> I already use MacroDef. As far as I see, none of those allows me to  
> define
> new targets, right? Only tasks?
>

Yes, they can only define new tasks, you can call targets from them
(using antcall) and of course call them from your tasks. If you use
antcall you can pass parameters to targets, so in a way they can act
as tasks as they can be reconfigured on runtime.

Script task can be used inside your target, so you can define targets
that have JavaScript code in them, only problem with this is that you
can't share code from one task/target script with others.

If you can't solve this with normal Ant construct you can drop down to
Java and create new Task, or even in Clojure (you will need to
initialize your antlib with classpath set to point to clojure.jar).

--
Krešimir Šojat
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to