This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 253584 - Move Project removes other files on disk
Summary: Move Project removes other files on disk
Status: RESOLVED INCOMPLETE
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-20 14:57 UTC by EricG
Modified: 2015-07-23 09:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description EricG 2015-07-20 14:57:16 UTC
I had a folder structure D:/A/B/MyFolderWithFilesAndProjects.
Then, using netbeans, I checked out (svn) sources and created a project in D:/A/B/
Because I realized I didnt want this, I wanted to move it to D:/A/B/DedicatedFolder but I didn't really have that option, I could go with D:/A/DedicatedFolder/B so I thought oh well let's see what it does.
Anyway, after this was done, my own 'MyFolderWithFilesAndProjects' folder(s) were removed from disk! I'm really disappointed cuz I had a fix in there.. can redo it now..

Steps afaik
1) Have a folder A, containing B, containing C1 & C2 on disk.
2) With netbeans, checkout svn project in folder B.
3) With netbeans, move project to A\Q\B (netbeans keeps the B, I desired A\X)
4) The Folders C1 & C2 disappeared from disk, they're not in A\Q\B either.

The reason that I put prio 2 is because it is crucial that netbeans doesnt remove my files..!

P.s.
I also tried to create a new project on a location that had already folders and files, move the project in netbeans but that goes OK. I'll leave further testing/reproducing up to you.
Comment 1 EricG 2015-07-20 14:58:38 UTC
Expected:
my folders C1 & C2 remain on disk

Actual result:
my folders C1 & C2 are removed from disk.
Comment 2 Tomas Stupka 2015-07-22 15:20:13 UTC
with the current dev build, following the description i tried, but wasn't able to reproduce
what netbeans build do you use?

> I had a folder structure D:/A/B/MyFolderWithFilesAndProjects.
> Then, using netbeans, I checked out (svn) sources and created a project in D:/A/B/
was it "Java Project with existing sources"?

> Steps afaik
> 1) Have a folder A, containing B, containing C1 & C2 on disk.
> 2) With netbeans, checkout svn project in folder B.
> 3) With netbeans, move project to A\Q\B (netbeans keeps the B, I desired A\X)
B was the folder in which you had the nbproject folder and thats also C1, C2 whee located, right?
Comment 3 EricG 2015-07-23 09:00:19 UTC
> what netbeans build do you use?
Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Updates: NetBeans IDE is updated to version NetBeans 8.0.2 Patch 2
Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Windows 7 version 6.1 running on amd64; Cp1252; en_GB (nb)

>> I had a folder structure D:/A/B/MyFolderWithFilesAndProjects.
>> Then, using netbeans, I checked out (svn) sources and created a project in D:/A/B/
>was it "Java Project with existing sources"?
No, the files in svn are not a netbeans project, just a combination of resources and java sources in folder structures. After checking out Netbeans asks me to create a project.

>> Steps afaik
>> 1) Have a folder A, containing B, containing C1 & C2 on disk.
>> 2) With netbeans, checkout svn project in folder B.
>> 3) With netbeans, move project to A\Q\B (netbeans keeps the B, I desired A\X)
>B was the folder in which you had the nbproject folder and thats also C1, C2 whee located, right?
Correct. Something that might be relevant is the following. 
I. I had the sources from a project in B/Z for a long time.
II. I renamed Z to C1 (so B/Z doesnt exist anymore).
III. I checked out a new version of the same project first in B/Z (with netbeans afai remember, 99% sure). I made fixes here. Somehow, netbeans didnt recognize svn so I wasnt able to commit (?!).
IV. Therefore, I renamed Z to C2.
V. I checked out the same project with netbeans again, but now accidently in A/B. (where C1 and C2 reside as well).
VI. then I tried to move etc.

I hope this might help.
Comment 4 EricG 2015-07-23 09:02:49 UTC
> I. I had the sources from a project in B/Z for a long time.
This was still with CVS. I wanted to use SVN so thats the reason I changed Z to C1 and checked out a copy.