Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Classpath container hicups, or bug in 3.1M6?
Classpath container hicups, or bug in 3.1M6? [message #203063] Wed, 11 May 2005 05:07
Eclipse UserFriend
Hi there,

this follows a message of mine that as not been answered.
I have made my own ClassPathcontainer and intitialiser but I don't get it
to work as expected.
I have an action changing the nature of my project and creating or
removing the classpath container according to the nature.
When I want to remove my container and therefore remove it's jars from
build class path I need to do 2 things,
first call
JavaCore.setClasspathContainer(path, new IJavaProject[]{project},new
IClasspathContainer[]{null}, null);
to remove it from cache.
then remove it's jars path from the project raw classpath
(myJavaProject.setRawClasspath).

Is this the right thing to do?

This a bit tidious to do that, I do not understant why there is no method
in JavaCore to remove Classpath Container both from container cache and
from build path?

Another problem is that the automatic rebuild is not launched after these
modifications, which is anoying.
Can someone tell me what is wrong ?

than you.

SeB
Previous Topic:Remove comments from a jdt CompilationUnit
Next Topic:Set Runtime-Classpath (LaunchConfiguration) programmatically
Goto Forum:
  


Current Time: Wed Jul 16 19:59:02 EDT 2025

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

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

Back to the top