Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 323790

Summary: Should be possible to unckeck one or more source folders as exported entries to keep its sources local to the project
Product: [Eclipse Project] JDT Reporter: Baptiste Mathus <divers>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
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 none

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 ***