Get package fragments roots with only sources of _this_ project [message #250564] |
Thu, 10 January 2008 07:54 |
Eclipse User |
|
|
|
Hi,
the question I'm about to ask is somewhat similar to this thread:
http://dev.eclipse.org/newslists/news.eclipse.tools.jdt/msg1 6282.html
My problem is as follows: I have a JavaProject "MyProject" with a src
folder and several "required projects" on its classpath. Now I want to get
all the java sources that belong to the src folder of my project, but I do
not want the java sources that belong to the required projects, even if
they exist as .java files.
Say, for example, I have MyProject and ProjectB in my workspace, and
MyProject requires ProjectB. ProjectB also has a src folder and various
java files in this folder. Thus, if I ask for all package fragment roots
of MyProject, I get "src" and "ProjectB", and both are of kind K_SOURCE.
Is there any way for me to only get the source files of MyProject and not
those of ProjectB as well?
I cannot assume that the first K_SOURCE package fragment found is the
package fragment with the needed sources, since the project in question
might only be a binary project but require projects in the workspace that
are of type K_SOURCE.
Soo... Any ideas? What am I missing.
Thanks for your help!
Philipp
|
|
|
Powered by
FUDForum. Page generated in 0.03205 seconds