> -----Original Message-----
> From: Andrew Ferguson [mailto:[EMAIL PROTECTED] 
> Sent: Monday, 26 September 2005 8:58 PM
> To: user@ant.apache.org
> 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.

http://www.dpml.net/transit/latest/antlib/index.html

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" http://www.dpml.net/magic/latest/ 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
mailto:[EMAIL PROTECTED]
http://www.dpml.net
 


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

Reply via email to