Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse Import Project question

 
V Bose
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suppose one already has a complicated project directory structure, How do you use the same set of source files inside Eclipse. Without having to copy source files to a new Workbench location ?
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can reference an external directory outside the workbench as a source or output directory.
That's what I always do, separating data from programs (they're always on different drives, sometimes different computers).
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually you don't even need to do this - the project doesn't need to reside in the workspace. You should be able to simply "import" the existing folder structure.
 
V Bose
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doesn't that make a copy of the contents (preserving the directory structure) into the workbench directory rather than just using the imported files?
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by V Bose:
Doesn't that make a copy of the contents (preserving the directory structure) into the workbench directory rather than just using the imported files?

Yes - sorry, confused it with "import existing project into workspace"...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic