Re: controlling ClassLoader when programmatically invoking Ant

2012-07-22 Thread Vimil Saju
y, July 22, 2012 8:52 AM Subject: Re: controlling ClassLoader when programmatically invoking Ant Right, what you describe falls under the #1 option I'd mentioned: "1. Create a parent ClassLoader just for all the Ant libraries and put JUnit itself and the entire test classpath in

Re: controlling ClassLoader when programmatically invoking Ant

2012-07-22 Thread Mitch Gitman
hen trying to > access that object from a class that was loaded from another classloader. > > > > From: Mitch Gitman > To: Ant Developers List > Sent: Saturday, July 21, 2012 6:16 PM > Subject: Re: controlling ClassLoader when programmatically invoking Ant > &g

Re: controlling ClassLoader when programmatically invoking Ant

2012-07-22 Thread Vimil Saju
another classloader.  From: Mitch Gitman To: Ant Developers List Sent: Saturday, July 21, 2012 6:16 PM Subject: Re: controlling ClassLoader when programmatically invoking Ant Quick update for anyone who's curious. I'd forgotten that I'd asked much the

Re: controlling ClassLoader when programmatically invoking Ant

2012-07-21 Thread Mitch Gitman
Quick update for anyone who's curious. I'd forgotten that I'd asked much the same question on the ant-user list back on May 31. This was back when the contamination of the child classpath with the parent classpath was literally causing the tests to fail. And same as with this thread, Nicolas L. wa

Re: controlling ClassLoader when programmatically invoking Ant

2012-07-21 Thread Mitch Gitman
Nicolas, thanks. I was one class off. I was looking at Main and AntMain when I should have been looking at Launcher. Seeing the type names and the main method threw me off. And this corroborates my brief follow-up that I could be doing something with URLClassLoader. Better for me to try to leverage

Re: controlling ClassLoader when programmatically invoking Ant

2012-07-21 Thread Nicolas Lalevée
Hi Mitch, Le 21 juil. 2012 à 07:37, Mitch Gitman a écrit : > Technically, this message is better suited for the ant-user list, but I'm > thinking I'm more apt to get an answer on this list. (I'm also thinking > this is the better place for me to cash in some chits for my having > submitted patche

Re: controlling ClassLoader when programmatically invoking Ant

2012-07-20 Thread Mitch Gitman
P.S. I'm going to give URLClassLoader a shot with the JARs in Ant lib: http://docs.oracle.com/javase/6/docs/api/java/net/URLClassLoader.html Almost sounds a little too easy... On Fri, Jul 20, 2012 at 10:37 PM, Mitch Gitman wrote: > Technically, this message is better suited for the ant-user lis

controlling ClassLoader when programmatically invoking Ant

2012-07-20 Thread Mitch Gitman
Technically, this message is better suited for the ant-user list, but I'm thinking I'm more apt to get an answer on this list. (I'm also thinking this is the better place for me to cash in some chits for my having submitted patches for three Ivy issues I mentioned recently on this list. Subject: "e