Bug 154206 - Ensure that bin.includes does not refer to the source
Summary: Ensure that bin.includes does not refer to the source
Status: CLOSED WONTFIX
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: bugday
Depends on:
Blocks:
 
Reported: 2006-08-17 08:38 EDT by Daniel Beck CLA
Modified: 2019-09-09 02:37 EDT (History)
3 users (show)

See Also:


Attachments
my plug-in's build.properties file. (147 bytes, text/plain)
2006-08-17 11:10 EDT, Daniel Beck CLA
no flags Details
mylyn/context/zip (768 bytes, application/octet-stream)
2007-11-11 21:47 EST, Chris Aniszczyk CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Beck CLA 2006-08-17 08:38:56 EDT
My project is organized as follow:

src/java <--- contains the java source code
plugin.xml <--- plugin.xml file for my RCP application
build.xml <-- created by right clicking by using the "PDE Tools-> Create Ant Build file"

The created build.xml is created by PDE to automate building of an eclipse RCP application. So, I tried it out, and entered
>> ant
no problem so far. Then I wanted to clean the workspace, and made
>> ant clean

Then the build file created by PDE erased my src/java source directory, and I lost two days of work!

This could have been evited if I the ${build.result.folder} property had an other default. It should not show into the src folder, which is often used to store user-edited sources.
Comment 1 Andrew Niefer CLA 2006-08-17 10:40:25 EDT
What version of eclipse are you using?  There were 2 bugs fixed in 3.2.0 for this kind of problem.  See bug 126984 and bug 125432.

If neither of these are the case for you, please give us the contents of your plug-in's build.properties file.
Comment 2 Daniel Beck CLA 2006-08-17 11:10:37 EDT
Created attachment 48097 [details]
my plug-in's build.properties file.
Comment 3 Daniel Beck CLA 2006-08-17 11:18:29 EDT
I'm using eclipse 3.2, so both bug should be fixed.

I attached my build.properties file, see comment #2
In the build.properties, the properties bin.includes and source.src/java both contains src/java. Note that I didn't create this file myself. 

Btw, I also choose to "Create a new Java Project" with different source and output folder then I created my Plug-in project.
Comment 4 Yves Willems CLA 2007-07-05 05:59:33 EDT
This bug is also active on 4.0 RC2 when using the CDT tool in combination with ant build scipts. We also lost several days of typing.
In CDT it can be avoided by making sure that the 'clean' selection in the 'workplace build behaviour' tab is not selected.
Comment 5 Chris Aniszczyk CLA 2007-11-11 21:47:07 EST
Let's target 3.4... hopefully someone grabs this for bugday

adding context...
Comment 6 Chris Aniszczyk CLA 2007-11-11 21:47:16 EST
Created attachment 82629 [details]
mylyn/context/zip
Comment 7 Eclipse Webmaster CLA 2019-09-06 15:31:46 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 8 Julian Honnen CLA 2019-09-09 02:37:35 EDT
Please remove the stalebug flag, if this issue is still relevant and can be reproduced on the latest release.