Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323790 - Should be possible to unckeck one or more source folders as exported entries to keep its sources local to the project
Summary: Should be possible to unckeck one or more source folders as exported entries ...
Status: CLOSED DUPLICATE of bug 224708
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-27 04:31 EDT by Baptiste Mathus CLA
Modified: 2010-08-27 05:39 EDT (History)
1 user (show)

See Also:


Attachments
Testcase with two projects : one with src and tests source folder. And another project dependent of the first one, using a class coming for the first project's tests folder (5.91 KB, application/x-zip-compressed)
2010-08-27 04:38 EDT, Baptiste Mathus CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Baptiste Mathus CLA 2010-08-27 04:31:59 EDT
Build Identifier: 20100218-1602

In my project, I have two source folders : "src" and "tests". If another project depends on this one, it's currently impossible to prevent this second project to  import things from first project's tests folder.

In my opinion, it should be possible to uncheck the export of this source folder.

Thanks in advance.
Cheers
PS : I selected the UI component above since I have to select something. But I don't know if it's only a UI problem or also a limitation of the underlying eclipse project classpath model.

Reproducible: Always

Steps to Reproduce:
1. Create a simple Java Project
2. Create a second source folder
3. Go to project properties
4. Java Build Path/Order and export tab
5. Try to uncheck
Comment 1 Baptiste Mathus CLA 2010-08-27 04:38:15 EDT
Created attachment 177593 [details]
Testcase with two projects : one with src and tests source folder. And another project dependent of the first one, using a class coming for the first project's tests folder

The import done in the testcase shouldn't be possible.

Cheers
Comment 2 Markus Keller CLA 2010-08-27 05:39:32 EDT

*** This bug has been marked as a duplicate of bug 224708 ***