1

I created a new project from an ant file that was in a folder outside of the Eclipse workspace, under version control. If I change a file that was already part of the project, it gets updated in its original location. BUT, when I create a new folder, it gets created outside of the original project folder, inside the Eclipse workspace, outside of version control. How do I make it save new files where the old ones are?

agentofuser
  • 8,987
  • 11
  • 54
  • 85

1 Answers1

1

If your .project and .classpath files are within the eclipse workspace, you should define a linked folder to reference and/or create files in directories outside your workspace.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • The option "link to folder in the file system" doesn't seem to exist when creating source folders. Do you know what to do in that case? – agentofuser Apr 21 '10 at 19:59
  • 1
    @obvio171: create the linked folder first. Then right-click on it: the "Build Path" section of the contextual menu should propose: "Use as Source Folder". – VonC Apr 21 '10 at 20:04