ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "amit malhotra" <amit_malho...@onebox.com>
Subject beginners question
Date Sun, 18 Nov 2001 07:30:09 GMT
hello everyone,
 i am a newbie to ant and read about the same at a couple of places.could
you please tell me some thing more about ant,and the resources available
online.


-- 
amit malhotra
amit_malhotra@onebox.com - email
(630) 536-2700 x1416 - voicemail/fax



---- Jeff Turner <jeff@socialchange.net.au> wrote:
> On Sun, Nov 18, 2001 at 05:25:40PM +1100, Peter Donald wrote:
> > On Sun, 18 Nov 2001 17:15, Jeff Turner wrote:
> > > Hi,
> > >
> > > I'm trying to use <taskdef> to define the <junit> task, so I don't
> have
> > > to require all users to copy junit.jar to the $ANT_HOME/lib.
> [..]
> > 
> > Unfortunately it isn't possible. The reason is that Ant will go looking
> for 
> > the junit task. It will first call the loadClass() in the ClassLoader
> created 
> > by taskdef. However this ClassLoader will first check the parent
> classloader 
> > for the junit class. It will find the junit class (because it is
> in 
> > ${ant.home}/lib/optional.jar). However unless junit.jar is also in
> the parent 
> > classloader, the JVM will be unable to locate the required junit
> classes and 
> > thus will report that it fails to load the junit task.
> 
> Ah of course.. the joys of delegating classloaders..
> 
> thanks,
> 
> --Jeff
> 
> > -- 
> > Cheers,
> > 
> > Pete
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
> 
> 

__________________________________________________
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com


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


Mime
View raw message