Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » JUnit Plugin Class-Loader
JUnit Plugin Class-Loader [message #61266] Wed, 18 June 2003 15:36 Go to next message
Eclipse UserFriend
I wanted to know about how the JUnit plugin or the JDT runs code in
..class files residing in projects in the workspace. I'm wroting a
plugin that needs to load up and use classes from a Java project in the
workspace. I wasn't sure how I could tell the plugin classloader to
include the appropriate project's bin directory (or the root dir if a
bin directory is not used) in the search space. Any tips would be most
appreciated.

Thank you,

Cohan
Re: JUnit Plugin Class-Loader [message #61337 is a reply to message #61266] Wed, 18 June 2003 17:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NOSPAM.us.ibm.com

See,

http://eclipsewiki.swiki.net/114#augmentedClasspath2

Rich
Re: JUnit Plugin Class-Loader [message #62153 is a reply to message #61337] Thu, 19 June 2003 16:36 Go to previous messageGo to next message
Eclipse UserFriend
Thanks! The article recommended I write my own class-loader. However, I
am worried about class-path and inter-project dependencies. What if the
class depended on a jar in another project? Isn't there any code in the
JDT (it executes java code in the workspace) or in the JUnit plugin
(which uses TestCases in the workspace) that I can reuse? I did a code
search but did not find the class-loaders that those plugins use. Thank
you.

Cohan

"Richard L. Kulp" wrote:

> See,
>
> http://eclipsewiki.swiki.net/114#augmentedClasspath2
>
> Rich
Re: JUnit Plugin Class-Loader [message #62272 is a reply to message #62153] Thu, 19 June 2003 17:59 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NOSPAM.us.ibm.com

As far as I know neither of them, JDT nor JUnit, run user code from a
project workspace within the IDE's JVM. When you run JUnit, it launches
another JVM to actually run the tests. And the JDT, if you are thinking
of scrapbook, also launches another JVM to do the scratchbook.

It's just something that really shouldn't be done. It's not safe.

Rich
Previous Topic:Can CVS be used behind a proxy server?
Next Topic:Newbie Question -- compiling the SWT examples
Goto Forum:
  


Current Time: Thu May 08 17:26:29 EDT 2025

Powered by FUDForum. Page generated in 0.06827 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top