ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen McConnell" <>
Subject RE: seemless integration of custom tasks?
Date Mon, 10 Oct 2005 17:33:40 GMT

> -----Original Message-----
> From: Andrew Ferguson [] 
> Sent: Monday, 26 September 2005 8:58 PM
> To:
> Subject: seemless integration of custom tasks?
> hi,
>  does anyone know if its possible to write ant tasks in a jar 
> file with some configuration data such that you don't need to 
> insert a <taskdef> declaration into each script that needs to 
> use them?
> i.e. once you've dropped your jar file into the ant 
> distribution's lib directory, then the new task is available 
> under a predefined name?

Under the DPML project there is an antlib that handles the resource
management overhead needed to deliver dynamic task loading based on
namespace declarations.

For the most part this antlib is used for low-level tasks including resource
retrieval from n repositories, importing build files via urns, and general
plugin loading.  An example of a plugin based on this antlib is the "DPML
Magic Build System" which is basically
just a bunch of pluggable tasks doing all of the common build requirements. 

Adding new a new task is simply a case of adding the tasks plugin to a
repository and including a plugin namespace reference in you build file.

Cheers, Steve.

Stephen McConnell

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

View raw message