Bug 39665 - Linked output folder deletes existing contents
Summary: Linked output folder deletes existing contents
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: 3.0 M9   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-05 20:44 EDT by John Rubier CLA
Modified: 2004-05-13 07:52 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Rubier CLA 2003-07-05 20:44:38 EDT
Specifying a linked folder for the project build output folder will delete any
content already existing in that folder.
Repro:
Properties->Java Build Path->Default Output Folder->Browse:
Create New Folder
(Enter a folder name)
Advanced->select "Link to folder in the file system"
(enter an existing folder path which contains nothing valuable)
OK->OK->OK
"OK to change output folder location...remove all from old location"
prompt...answer doesn't matter.
Build of project will delete contents of the linked folder.
Subsequent builds will not delete any existing contents of the folder.
Comment 1 Dirk Baeumer CLA 2003-07-07 06:32:37 EDT
Remove "all from old location" is a question to remove class files from the 
current output folder location not from the one you are specifing right now.

Moving to JDT/Core for clarification since they control the output folder.
Comment 2 Philipe Mulet CLA 2004-05-13 07:52:46 EDT
By default, we consider owning the output folder, and will clean it when 
rebuilding all binaries.

You may turn this off: Preferences>Java>Compiler>Build Path>Clean output 
folders on full build.