ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Ferguson" <william_fergu...@versata.com.au>
Subject RE: Classloader problem with rpelaceregexp
Date Tue, 11 Feb 2003 06:15:41 GMT
Thanks for the confirmation Stefan.
I guess we'll just have to run dirty :-)

William


-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org]
Sent: Monday, February 10, 2003 11:58 PM
To: ant-user@jakarta.apache.org
Subject: Re: Classloader problem with rpelaceregexp


On Mon, 10 Feb 2003, William Ferguson
<william_ferguson@versata.com.au> wrote:

> OK, I'll try again with a different subject line.

At least for me it hasn't been a problem of the subject line 8-)

You obviously have all your facts together, you know why things happen
and you know how to fix it in an ugly way.  And no, I don't know of
any easier way (I don't think there is one).

> but it seems that classloading has become a bit of an issue.

It always becomes an issue if you try really advanced things in Ant.
The only real solution would be a cleaner class loader hierarchy,
where no Ant classes end up on thy system classloader.

Part of it could be done today by not using Class.forName in so many
places as we do (but rather set context classloaders and use them
where appropriate - and only in JDK 1.2+ of course).  But this
wouldn't solve the problem completely, which probably explains why
nobody has invested too much time into it yet.

Switching to something clean is impossible without seriously breaking
backwards compatibility for a lot of task writers who rely on Ant's
current classloader mechanics.

Stefan

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



Mime
View raw message