Re: inline use of antlib with namespace?

Stefan Bodewig <[email protected]> Tue, 22 Sep 2020 08:09:04 +0200
Newsgroups gmane.comp.jakarta.ant.user
Message-ID <[email protected]>
On 2020-09-21, Alan Snyder wrote:

> I think you are understanding correctly.

> It sounds like what I want might require either an include statement (textual inclusion) or project inheritance.

If you wanted something like project inheritance, then the projects need
to be aware and use "their parent" in some way. To me this sounds more
intrusive than putting an xmlns:prefix="" with the antlib-URI at the
project level.

If setting up the classloader is a concern, then use an URI using a
scheme other than antlib and use taskdef assigning that URI. If you
ensure taskdef has been run before the task itself is used this should
work.

Stefan