rational team concert eclipse can not discover changes to file
I have a file like foo.jar file that I manage outside of the RTC eclipse client. When I make changes to this file I need to have Rational Team Concert recognize that the file has changed and be able to check-in and deliver the changes.
I had at one point put this file in a .jazzignore file to intentionally ignore it but I have made sure to remove it from the .jazzignore file and in fact removed all .jazzignore files from the entire tree. When I make edits to a few other files in the same directory RTC recognizes the changes. If I add a new jar file to the same directory RTC recognizes the changes. It is only the one file that is being ignored.
I have even experimented:
Change a foo.txt file in the same directory - RTC discovers the change.
Add foo.txt to the .jazzignore file - RTC no longer notices the change.
Remove foo.txt from the .jazzignore file - RTC again discovers the change.
But this does not seem to apply to foo.jar. I have even wiped my entire installation of RTC, removed the entire directory, and re-installed and I still can not pick up changes.
Accepted answer
I have some files I work on outside of Eclipse but track in RTC. I find that right clicking the project in the Project Explorer and hitting Refresh causes Eclipse to scan the file system and detect that changes were made, which makes the changes suddenly show up in the Pending Changes view.
Window > Show View > Other and search for the Project Explorer. It's part of Eclipse, the default project viewing window.
Comments
Thank you June. This was something new to try and brought up an idea to try both loading the component and creating an eclipse project to then explore as you said and try without creating a project to see if it could find the change either way. Neither, unfortunately worked for me.
In your steps though I did notice that in the Project Explorer window each file and folder is shown with an icon of a small orange something (rectangle/cylindar) in the bottom right of the icon, but the foo.jar file itself has the same icon but it is grey not orange. Maybe that shows a difference, any idea what a grey icon means?
The grey cylinder (I think it's the universal 'database' icon) indicates it is on the ignore list. You can add and remove it to the ignore list via right click menu > Team.
There are outgoing and I believe incoming arrows when there are changes in your sandbox or upstream to deliver/accept. The yellow cylinder icon indicates it is synced.
That was it!
Somehow despite not being on any ignore list I could find it was on an internal one. June you are my hero.
One other answer
I had an experience that RTC eclipse client doesn't discover changes to file when timestamp is not changed by an external tool.
Comments
Good thought but yes the time stamp is updated when changes are made
Have you refreshed the view that shows the Jar file? That is what the answer is about.
I am sure I have checked in binaries. And I had to explicitly ignore .jar files.
Not entirely sure which view you are referencing:
pending changes - yes I have refreshed but it doesn't show foo.jar
repository files - yes as well and the file foo.jar is shown. I can even do a "diff" and while it is nonsense for a binary file it does show differences
other?
I have also added a "bar.jar" into the same directory which I mention and pending changes view shows the addition of that file, just not any changes to the original "foo.jar"
The refresh button in the pending changes view defaults to only refreshing changes made to the repository workspace and its flow target on the server to see if there are new change sets. It doesn't scan the local sandboxes.
Can you try clicking the little down arrow beside the refresh button and choose "Refresh sandbox and remote changes..." It may take a little while for it to complete its scan of the filesystem.
Yes I have done both. I have refreshed to scan the local with the "Refresh sandbox and remote changes". I actually also have the preferences set up to automatically do this scan every minute or so to automatically detect these local changes done outside of RTC Eclipse client without having to press that refresh button but neither relying on the automatic process, nor specifically requesting the refresh of the sandbox works