Bug 5706 - Cannot add two folders w/ same name but diff projects to build path of Java project
Summary: Cannot add two folders w/ same name but diff projects to build path of Java p...
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows NT
: P1 normal (vote)
Target Milestone: 2.0 M3   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-09 08:59 EST by Andrew McCullough CLA
Modified: 2002-02-07 08:46 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 Andrew McCullough CLA 2001-11-09 08:59:48 EST
When I try to add two folders of the same name to the build path, I get an
error.

BUILD: 137

Example:

ProjectA
    Folder foo
        Folder bar

Project B
    Folder foo
        Folder bar

Project B--> Build Path --> add Folder ProjectB/foo/bar  (this works)
Project B--> Build Path --> add Folder ProjectA/foo/bar (this fails,
assuming you did step1)

Seems I am only allowed to have one of the same name, despite the fact hat
they are in different projects.

FYI:  This is in WSAD internal IBM version.
Comment 1 Philipe Mulet CLA 2001-11-09 19:21:50 EST
Are these folders source ones ? If so, then the rule is that a source folder 
must belong to the same project (a project can only see binary contributions 
from others); it has nothing to do with having the same name.
Comment 2 Philipe Mulet CLA 2001-11-29 09:30:08 EST
Ok to close ?
Comment 3 Andrew McCullough CLA 2001-11-29 13:11:19 EST
No, they are not source folders.  The problem comes when adding folders to the 
build path on the "Library Tab" of the Project Properties page.   Here is an 
approximation of the layout I had when I ran into this problem

D2V1  (project)
    classes (BUILD folder)
    src (SOURCE folder)
    .... bunch of other folders
    operations
	config


TestHarness (project)
    classes (BUILD folder)
    src (SOURCE folder)
    ... bunch of other folders..
    operations
  	config

if I try to add both config directories (each under $PROJECT/operations/config) 
to the build path, I get the error ("name conflict").  The directories contain 
configuration files.  This is on a ClearCase drive, which was not "Designed" 
for WSAD -- it was added with the "browse" after unchecking use default 
location.  FYI, this is with the IBM internal download of the WSAD GA build 
based on 137, but I have seem the problem on other builds.



My workaround for now is adding the second directory as a CLASSPATH variable, 
which gets me around the problem.
Comment 4 Philipe Mulet CLA 2002-02-02 07:35:01 EST
Will investigate
Comment 5 Andrew McCullough CLA 2002-02-02 16:54:11 EST
I can no longer reproduce this on the latest stable build.  Ok by me to close.

-Andrew

Comment 6 Philipe Mulet CLA 2002-02-07 08:46:08 EST
Thanks, closing.