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?
Asked
Active
Viewed 1.4k times
1 Answers
30
Yes, you can define it as a linked folder.
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 clickAdvanced>>
Click
Link to folder
in the file system
Click onVariables
... 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.
-
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
-
4I'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