https://issues.apache.org/bugzilla/show_bug.cgi?id=48633
--- Comment #2 from Eric Johnson <[email protected]> 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.
