Bug 28263

Summary: Better specification of source folders
Product: [Eclipse Project] JDT Reporter: Marius Kotsbak <marius>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: CLOSED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1 M5   
Hardware: PC   
OS: All   
Whiteboard:

Description Marius Kotsbak CLA 2002-12-13 09:24:17 EST
We have a project root like this:
<root>
  com
     acompany
       product1
       product2
  doc
    diagrams
  test
     src
       product1test
       product2test

Source roots are both "test/src" and the root with packages from com/.. (yes, I
know this com at root is stupid, but it is hard to change when it is in cvs).

We either specify src at <root>, and get packages/listings of ALL files
(including doc), or do a trick by making a src-directory under root, and making
a synlink inside it to com.

The second solution works ok, but the cvs module complains of duplicate entries,
and actually deletes files (should never do that)!

Solutions:
* Allow us to specify both project root as source folder as well as other
folders (like test/src), and don't show folders which does't contain source
files (.java-files). Alternatively better specification of working sets (show
packages as tree)
* fix cvs module so that it doesn't delete files!
Comment 1 Philipe Mulet CLA 2002-12-13 12:07:02 EST
Now, you could use exclusion filters too, to obtain a project Product1:

If you create project Product1, using <root> as your source folder, and 
exclude "com/acompany/product2/" from it. This will allow you to filter out
product2 portion.
--------------
Also, you could have your sources be in an arbitrary location, and use linked 
resources to point at them (~ Eclipse symlinks).

Imagine your source tree is in:
/sources/com/acompany/product1
/sources/com/acompany/product2

You could create project Product1 inside your workspace, and have it point at 
external sources using a linked folder 'src' (mapped to external '/sources' 
folder).

Then using an exclusion patterns on the source folder 
(exclude "com/acompany/product2/"), you will get to see only the relevant 
sources.

Does this work for you (you need a fairly recent integration build).


Comment 2 Philipe Mulet CLA 2003-01-08 09:06:08 EST
Ok to close?
Comment 3 Marius Kotsbak CLA 2003-01-08 12:28:34 EST
No, please wait until I have tested the soluton.
Comment 4 Philipe Mulet CLA 2003-01-25 07:25:37 EST
Any progress ? What about I close this defect, and you reopen if you see a 
problem ?
Comment 5 Marius Kotsbak CLA 2003-01-26 17:02:51 EST
ok
Comment 6 Philipe Mulet CLA 2003-01-27 06:01:10 EST
Closing
Comment 7 Marius Kotsbak CLA 2003-06-22 13:06:24 EDT
Seems this is solved in the new versions.
Comment 8 Marius Kotsbak CLA 2003-06-22 13:07:10 EDT
Closing