ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <pe...@apache.org>
Subject Re: My itches for 1.6
Date Sat, 13 Jul 2002 22:57:08 GMT
At 08:54 AM 7/13/2002 -0700, you wrote:
>On Sat, 13 Jul 2002, Peter Donald wrote:
>
> > At 03:01 PM 7/12/2002 -0700, you wrote:
> > >Not sure I understand what will brake. I'm not talking about putting
> > >ant implementation in a separate loader, like tomcat does - just
> > >have a small Bootstrap that creates an AntClassLoader and puts
> > >everything in lib/ in it ( like the shell is doing ).
> >
> > The sheel places them in the system classloader and thus a classloader like
> >
> > new URLClassLoader( new URL[] { myFile.toURL() } );
> >
> > include the ant classes (as they are in system classloader).
>
>You realize this is wrong and such code will fail in a container
>environment. ( as general programming - for ant it may be ok ).

It is not wrong. Thats the way ant was designed to work ;)

>Ok, would it be ok if the ant classes ( core, types, standard taskdefs )
>are in the system loader, but the optional tasks are not ?

Not for my tasks. They use junit and xslt liasons.


Cheers,

Peter Donald
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Faced with the choice between changing one's mind,
and proving that there is no need to do so - almost
everyone gets busy on the proof."
              - John Kenneth Galbraith
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


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


Mime
View raw message