Bug 225558 - Files does not refresh in project view with symlinks
Files does not refresh in project view with symlinks
Status: NEW
Product: platform
Classification: Unclassified
Component: Filesystems
7.2
PC Windows 8 x64
: P3 (vote)
: 8.0
Assigned To: Jaroslav Havlin
issues@platform
:
: 212897 (view as bug list)
Depends on: 237882
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-30 18:25 UTC by emoranchel
Modified: 2013-11-05 16:18 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
:


Attachments
Possible fix (8.01 KB, patch)
2013-11-05 16:17 UTC, Jaroslav Havlin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description emoranchel 2013-01-30 18:25:31 UTC
When opening a project that is stored in a symlinked folder when you update the files outside NetBeans the IDE does not update the file tree or the file contents (if a project is running).

Using NTFS file system and the mklink command

Steps to reproduce:
1. Create a new project (I used a Java Web project)
2. Close the project.
3. Create a symlink (Directory junction) to the project using a command prompt and  executing: mklink theCreatedProject newprojectfolder /J
4. Open the newprojectfolder project (junctioned folder)
5. Add a new file to the project (an html for example)
6. Netbeans does not display the new file.

- Temporary work around: close and open the project.

I suspect that the OS reports changes to the files only in the original folder not the junctions.

Is there a refresh button for this cases?
Comment 1 Jaroslav Havlin 2013-09-04 13:54:27 UTC
*** Bug 212897 has been marked as a duplicate of this bug. ***
Comment 2 Jaroslav Havlin 2013-11-01 10:30:10 UTC
> Is there a refresh button for this cases?
Main menu -> Source -> Scan for External Changes
Comment 3 Jaroslav Havlin 2013-11-05 16:17:54 UTC
Created attachment 141877 [details]
Possible fix

Patch with a possible fix for initial review.

Support for symlink watching has to be enabled by system property:
-J-Dnb.fs.watch.symlinks=true


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo