ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48633] Launcher class use of URLClassLoader makes it impossible to launch Ant from custom URLClassLoader
Date Fri, 05 Mar 2010 17:35:37 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48633

--- Comment #2 from Eric Johnson <eric@tibco.com> 2010-03-05 17:35:36 UTC ---
Effectively, I'm trying to do one very simple thing - provide a wrapper around
Ant so that I can download the Ant distribution and run it from the same JVM. 
I don't want to pay the performance penalty of downloading Ant, then running it
in a different JVM.

So what I want to do is almost exactly to launch Ant as if it were a command
line invocation, except that when the JVM starts, the Ant JARs may not be on
disk, so they're not in the system class loader.  My little stub fetches the
JAR files, loads up the launcher in a URLClassLoader, then launches Ant with
exactly the parameters that were passed to it.

Duplicating all the functionality of the Launcher Class certainly is possible,
but would be hundreds of lines of unnecessary code, since the Launcher class
makes a unnecessary assumption about how it is being used.  Passing the
ClassLoader as my patch suggests simply eliminates that assumption.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message