Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Some questions about classpath containers
Some questions about classpath containers [message #133760] Mon, 12 January 2004 18:43 Go to next message
Eclipse UserFriend
I have some questions about classpath containers.

After reading the comment of IClasspathContainer

"The set of entries associated with a classpath container may contain
any of the following:
- library entries (<code>CPE_LIBRARY</code>)
- project entries (<code>CPE_PROJECT</code>)"

I thought it should be OK to add both (library and project entries) to
the same container. But that does not seem to work for me. If I add only
projects or only libraries to the container everything works as
expected. (Except that a container containing projects is not displayed
in the package explorer)

Has anyone used a container in this way? Should it work like I have
understood it? Am I misreading the docs, or should I debug a little bit
longer :-)

It does not seem to work (although it seems to be possible from a code
point of view) to mark only some elements of a classpath container as
exported, or is this just another bug in my code? (I have not found
anything in the docs which says that it should or should not work).

Thanks

Nico
Re: Some questions about classpath containers [message #134158 is a reply to message #133760] Tue, 13 January 2004 06:03 Go to previous messageGo to next message
Eclipse UserFriend
Can you describe what doesn't work (i.e. what are you seeing, what do you
expect) ?

Jerome

"Nico Seessle" <nico@seessle.de> wrote in message
news:btvbc8$knn$1@eclipse.org...
> I have some questions about classpath containers.
>
> After reading the comment of IClasspathContainer
>
> "The set of entries associated with a classpath container may contain
> any of the following:
> - library entries (<code>CPE_LIBRARY</code>)
> - project entries (<code>CPE_PROJECT</code>)"
>
> I thought it should be OK to add both (library and project entries) to
> the same container. But that does not seem to work for me. If I add only
> projects or only libraries to the container everything works as
> expected. (Except that a container containing projects is not displayed
> in the package explorer)
>
> Has anyone used a container in this way? Should it work like I have
> understood it? Am I misreading the docs, or should I debug a little bit
> longer :-)
>
> It does not seem to work (although it seems to be possible from a code
> point of view) to mark only some elements of a classpath container as
> exported, or is this just another bug in my code? (I have not found
> anything in the docs which says that it should or should not work).
>
> Thanks
>
> Nico
Re: Some questions about classpath containers [message #134364 is a reply to message #134158] Tue, 13 January 2004 16:45 Go to previous messageGo to next message
Eclipse UserFriend
Jerome Lanneluc wrote:

> Can you describe what doesn't work (i.e. what are you seeing, what do you
> expect) ?

I thought I had done that (indirectly).

Let me first explain a little bit what I try to do. It seems to be
similar to what PDE is doing. We are developing a very modular
application which currently consists of about 30 projects. Some of them
are checked out as projects, some of them are only available as external
libraries. Using a classpath container seemed to be much simplier than
studying the whole PDE source to see how it's done there :-)

In case 1 (adding projects and external jar files to one container) I
see that the project has compile errors, whereas if I make all required
projects available as a jar file everything compiles. If I provide the
projects and libraries as 2 containers (which is the workaround I'm
currently using) all compiles correctly too.

In case 2 I see that a project project "B" which depends on a project
"A" which has a classpath container (with some entries marked as
"export") assigned does not "see" the packages and classes which should
be available if the export would work. In addition the container in "A"
is showing an empty checkbox, whereas I would assume that it would be
"grey checked" if some some of the entries are exported.

I have not checked if exporting a whole container would work, will try
to do that later.

Thanks.

Nico
Re: Some questions about classpath containers [message #134681 is a reply to message #134364] Wed, 14 January 2004 10:29 Go to previous message
Eclipse UserFriend
This sounds like a bug. Please enter a bug report against JDT Core with
steps to reproduce the problem (you may want to attach an example of
IClasspathContainer and ClasspathContainerInitializer that shows the
problem)

Jerome

"Nico Seessle" <nico@seessle.de> wrote in message
news:bu1oq3$ftr$1@eclipse.org...
> Jerome Lanneluc wrote:
>
> > Can you describe what doesn't work (i.e. what are you seeing, what do
you
> > expect) ?
>
> I thought I had done that (indirectly).
>
> Let me first explain a little bit what I try to do. It seems to be
> similar to what PDE is doing. We are developing a very modular
> application which currently consists of about 30 projects. Some of them
> are checked out as projects, some of them are only available as external
> libraries. Using a classpath container seemed to be much simplier than
> studying the whole PDE source to see how it's done there :-)
>
> In case 1 (adding projects and external jar files to one container) I
> see that the project has compile errors, whereas if I make all required
> projects available as a jar file everything compiles. If I provide the
> projects and libraries as 2 containers (which is the workaround I'm
> currently using) all compiles correctly too.
>
> In case 2 I see that a project project "B" which depends on a project
> "A" which has a classpath container (with some entries marked as
> "export") assigned does not "see" the packages and classes which should
> be available if the export would work. In addition the container in "A"
> is showing an empty checkbox, whereas I would assume that it would be
> "grey checked" if some some of the entries are exported.
>
> I have not checked if exporting a whole container would work, will try
> to do that later.
>
> Thanks.
>
> Nico
Previous Topic:Setting appropriate classpaths in Linux version
Next Topic:[ANN] CodePro v2.3.2 Beta - 400+ Audit Rules & Metrics
Goto Forum:
  


Current Time: Wed Jul 23 14:12:07 EDT 2025

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

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

Back to the top