24

Is there a way in eclipse to make the project's output folder an external folder, instead of a folder located under the project root?

Avi Y
  • 2,456
  • 4
  • 29
  • 35

1 Answers1

30

Yes, you can define it as a linked folder.

http://archive.eclipse.org/eclipse/downloads/drops/R-2.1-200303272130/images/linked-resource.gif

This this SO answer for more (or this one)

To create a new linked folder select New->Folder, input bin in the folder name: field then click Advanced>>

Click Link to folder in the file system
Click on Variables... to bring up the Select Path Variable dialog.

If this is your first time, or you are linking to a new location select New... and give the variable a sensible name and path.

More precisely, you define your output directory (say 'bin') as a linked folder, then you set that directory as the official output one of your project.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • 1
    +1 linked folders are cool. I would recommend using them in conjunction with a Variable though to help maintain platform independence – Rich Seller Sep 24 '09 at 13:10
  • VonC, Where is stored the mapping between the linked folder name and the real location ? I can't find it in the workspace nor in the project folder. – Gilles Philippart Jun 14 '10 at 07:36
  • 1
    @Gilles: Hi Gilles, that is one weird sametime ;) I just defined one linked folder and see its definition (including the real path) in the `.project` file. – VonC Jun 14 '10 at 08:20
  • 4
    I'm sorry to say this, but it really s*ucks ! It really should belong to the workspace and be seat-specific ! – Gilles Philippart Jun 14 '10 at 15:45
  • @GillesPhilippart How would you guarantee that both you and I would define the same variable for the same purpose? After all, people typically don't share workspaces, just projects. It seems you're looking for the functionality typically provided by environment variables. – iheanyi Jun 10 '15 at 21:06