Bug 27487 - Builder doesn't handle move to nested source folder
Summary: Builder doesn't handle move to nested source folder
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M4   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-02 07:19 EST by Jerome Lanneluc CLA
Modified: 2002-12-17 12:00 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jerome Lanneluc CLA 2002-12-02 07:19:59 EST
Build 20021127 + latest jdtcore

1. Create a Java project with 2 folders: P/src1 and P/src1/src2 and the 
following .classpath file:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry kind="src" path="src1" excluding="src2/"/>
    <classpathentry kind="src" path="src1/src2"/>
    <classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" 
sourcepath="JRE_SRC"/>
    <classpathentry kind="output" path="bin"/>
</classpath>
2. In P/src1 create package p and class X:
package p;
public class X {
}
3. Build
4. Move package p to P/src1/src2
5. Build
Observe: You get an error: 'The declared package does not match the expected 
package src2.p'
Comment 1 Kent Johnson CLA 2002-12-02 14:30:27 EST
Fixed.

Added new test for this case.
Comment 2 David Audel CLA 2002-12-17 12:00:06 EST
Verified.