Resource file not updated
Answered
I have a Java project with some resource files. When the project is rebuilt, the resource files are copied into the build area. However, when I modified one of these files, the only way I could find to get the file updated in the build area is to delete the existing file in the build area and run make. I tried using the synchronize contextual menu item at every level of the project file hierarchy, but it had no effect.
Am I missing something, or is this a bug?
Is there a way to have resource files updated automatically (I think this used to work)?
One possibly relevant point is that the path to the resource file involves a symlink.
Please sign in to leave a comment.
Does it work without a symlink? IntelliJ IDEA doesn't handle them well.
Yes, a make will update a resource file in the same module whose path does not include a symlink.
See https://youtrack.jetbrains.com/issues?q=project:%20IDEA,IDEABKL%20order%20by:%20updated%20%23symlinks%20%23unresolved
That link does not work for me:
Try to open https://youtrack.jetbrains.com/issues/IDEA and search for "symlinks".
I found several possibly related issues:
IDEA-65174 (relates to active change notification, created in 2010)
IDEA-88995 (relates to automatic synchronization, created in 2012)
IDEA-160590 (relates to symlink update events, a requested feature?, created in 2016)
Given the dates on these issues, is there any chance that this problem will be fixed?