ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Ant "roles"
Date Tue, 19 Apr 2005 16:08:54 GMT
On Tue, 19 Apr 2005, Matt Benson <gudnabrsam@yahoo.com> wrote:

> My concern here is back to this: I would like an alternate syntax
> for loading built-in antlibs (as I have made painfully clear).

Yes you have.  And you have my support for a new protocol (in case I
wasn't clear).

> Since antlibs don't accept <import> AFAIK

But <typedef>.

You can have org/apache/tools/ant/taskdefs/antlib.xml with

<antlib>
  <typedef resource="org/apache/tools/ant/taskdefs/defaults.properties"/>
</antlib>

as well as org/apache/tools/ant/types/antlib.xml with

<antlib>
  <typedef resource="org/apache/tools/ant/types/defaults.properties"/>
  <typedef resource="org/apache/tools/ant/types/selectors/antlib.xml"/>
  <typedef resource="org/apache/tools/ant/taskdefs/conditions/antlib.xml"/>
</antlib>

and then even org/apache/tools/ant/antlib.xml with

<antlib>
  <typedef resource="org/apache/tools/ant/types/antlib.xml"/>
  <typedef resource="org/apache/tools/ant/taskdefs/antlib.xml"/>
</antlib>

> I would hate to add the same resource (content) in >1 place,

Of course.

Stefan

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


Mime
View raw message