Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

byrne-greg/EclipseBug560588

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EclipseBug560588

Demonstration of an eclipse bug logged at https://bugs.eclipse.org/bugs/show_bug.cgi?id=560588

Problem

Importing existing projects into eclipse do not respect the Project name as defined in the .project file depending on where the workspace is located in the code's top level directory (i.e. nested 1 or 2 levels above the .project file)

Reproduce

  1. Open Eclipse
  2. Switch the workspace to the /EclipseBug/ directory
  3. Select from Eclipse top menu File -> Import -> General -> Existing projects into workspace
  4. Use the current directory (/EclipseBug/) as the root directory and ensure Search for nested projects is selected
  5. The projects that should be displayed are CoreInf and NotCoreInf (as expected, using the .project name)
  6. Switch the workspace to the /EclipseBug/myWorkspace/ directory
  7. Select from Eclipse top menu File -> Import -> General -> Existing projects into workspace
  8. Use the current directory (/EclipseBug/myWorkspace/) as the root directory and ensure Search for nested projects is selected
  9. The projects that should be displayed are CoreInf and coreinf (not expected, using the directory name)

Result

When the workspace is set to the top level directory of the projects, Eclipse should import using the project name rather than the subdirectory name of the project.

Expected Expected projects for Import - 2 levels above project dir (e.g. /EclipseBug/)

Actual Actual projects for Import - 1 levels above project dir (e.g. /EclipseBug/myWorkspace)

It would be expected that the behavour would be the same irrespective of the placement of the workspace directory/import root directory and that the .project name would always be used over the directory name.

Workaround

Ensure your workspace is at a level where imported projects are not nested one level deep (i.e. set your project at least two levels above the codebase)

Releases

No releases published

Packages

No packages published

Languages