Created attachment 102204 [details]
I disabled CoS on a newly created java project.
After I manually compiled a java class in Test Packages.
Now all my sources are deleted. :-(
BTW: Why isn't DATALOSS in the keyword list?
Works for me. Can you attach the Ant log? What do you mean by "After I manually compiled a java class in Test Packages" ? The screen shot shown different path in Explorer than in IDE.
Created attachment 102209 [details]
Not all projects have been deleted, only the ones located under C:\Projects\Java_Bugs\JDK-7\...
Note the leading space in name of project:
Created attachment 102211 [details]
You have been too fast ;-)
Attaching the logs was intended.
(In reply to comment #2)
> What do you mean by "After I manually compiled a java class in Test Packages" ?
- Right-click on Test6968348_1.java (now lost) in Test Packages.
- Click Compile.
> The screen shot shown different path in Explorer than in IDE.
This was to demonstrate one of the other emptied projects.
Maybe the dirs have been remained because of the .svn folders.
All dirs except build and nbproject have been deleted in
(In reply to comment #3)
> Not all projects have been deleted, only the ones located under
Additionally CoS was disabled for all those projects, see Projects window screen shot.
On UNIX (MacOS X) works fine. Seems as Windows specific problem.
Caused by the Ant's PatternSet which treats comma and space as separators. There is no chance to force it to use only comma. I am fixing it using includesfile.
Thanks for the fast evaluation.
Is it correct, that my typo (space at the beginning of the project name) in fact caused the deletion?
What's about, if there is a space in the middle of a name?
Fixed jet-main 11b8ad556333
If the space is inside the path, eg. C:\Documents & Settings\Projects\MyProject. It has the same problem but it will delete data "only" if the path.substring(0,path.indexOf(' ')) exists. In this case it will delete content of folder C:\Documents (if exists).
Integrated into 'main-golden', will be available in build *201010050000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Tomas Zezula <email@example.com>
Log: #190689:DATALOSS - Compile action deleted sources of ALL projects
Backported into release692 http://hg.netbeans.org/releases/rev/41be3f249062
Verified in the following build with installed 6.9 Patch 2 plugins:
Product Version: NetBeans IDE 6.9 (Build 201010211515)
Java: 1.6.0_12; Java HotSpot(TM) Client VM 11.2-b01
System: Windows Vista version 6.0 running on x86; Cp1250; cs_CZ (nb)