ant-user mailing list archives

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

> -----Original Message-----
> From: Andrew Ferguson [mailto:Andrew.Ferguson@arm.com] 
> 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:mcconnell@dpml.net
http://www.dpml.net
 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message