ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@mad.scientist.com>
Subject Re: Dynamic load of Ant [EXPIRED TRIAL LICENCE]
Date Thu, 15 Jun 2000 10:15:47 GMT
At 12:31  15/6/00 +0930, you wrote:

>I've been vaguely looking at this recently. I don't know what the Java 2
>API is like in this area, but classloaders aren't that 
...snip...

This is from memory but 1.2 classloaders are as easy as pie ... simply go

URL urls[] = { new URL( "file:" + path ) };
ClassLoader cl = new java.net.ClassLoader( urls );

Done ! :P

Cheers,

Pete

*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power."          |
|       -Abraham Lincoln                               |
*------------------------------------------------------*

Mime
View raw message