Re: Antlibs and Classloaders
Gintautas Grigelionis <[email protected]> Sat, 1 Aug 2026 16:10:46 +0200
| Newsgroups | gmane.comp.jakarta.ant.devel |
|---|---|
| Message-ID | <CALVNWHUeWOanFOXPQJee3muhHAt8UbLZ0SNVp_cC6DfvmyYSaA@mail.gmail.com> |
--000000000000b668240657fcdfb7 Content-Type: text/plain; charset="UTF-8" On Sat, 1 Aug 2026 at 11:36, Stefan Bodewig <[email protected]> wrote: > > There is a built-in way in Ant, the <classloader> task - something that > is dirty little secret so much that we don't even document it. This > could either be used to inject Ivy into Ant's core loader - or I could > define the classloader for the Antlib and set it up to use the > classloader that is used by Ivy as its parent. This should work. If this > is an approach we want to recommend, we probably should make the task > "official". There is that 20+ year old proposal for an "advanced" classloader task that can be used as an antlib :-) > Another idea would be to allow <typedef> to optionally specify the > parent classloader. This would allow the setup of the paragraph above > without the use of the classloader task - but requires a change to Ant. That would suffice. Gintas --000000000000b668240657fcdfb7--