Auto-check in of new files without Eclipse projects
2 answers
I am working on articles on Jazz.net, where I don't really want to load the whole web site, but a folder, and work on the content.So I face a similar challenge.
What works for me is to load the folder and let RTC create an artificial Eclipse project. All I do is to make sure the Eclipse project does not ever get checked in.
I use manual check in, to make sure that does not happen. If you want to use auto checkin, you would have to ignore the .project file and actually check in the .jazzignore file, so the .project file never gets checked in.
If you usually load one folder, you would only have to have the .jazzignore file there. Otherwise, you would get .jazzignore files in each of the folders you load. If that is acceptable and you have a .jazzignore file in the folder to load, auto checking would work for you.
I think, if a .project file ever gets checked in, you could still add it to the ignore list and it would be removed, unless you have completed the change set.
This is the best way, I am aware of to handle this.
Comments
PS: you could try to add the pattern .project to the Ignored resources in Eclipse under Window>Preferences>Team>Ignored Resources, if you never plan to use Eclipse projects, this should solve the problem of the .jazzignore files.
[Duplicate comment]
Working with artificial Eclipse projects is a good suggestion--we've added that extension to our ignore lists now so we can work in either way, depending on the use case. I'm also glad to hear that we're not the only ones trying to use RTC in this way.
In particular, my set-up is:
- Load the component using the "load the selected folders but do not create Eclipse projects" option.
- Check the "automatically detect changes" box in the "Team -> JazzSourceControl -> LocalChanges" preference.
- Check the "auto-checkin local changes" box in the "Team -> JazzSourceControl ->CheckinPolicies" preference.
Every time I save a file anywhere in the loaded component, it automatically gets checked in to an RTC change set.
Comments
Thanks for taking the time to try that out. Is the behavior the same for you when adding new files to the component which are not already under source control? I'm currently using those two settings that you mentioned, but they only create the change set when I'm modifying or deleting existing files, rather than adding new ones.
For me, this works for new files, as well as modified and deleted files.
Note I am using a Windows box ... behavior may differ on non-Windows boxes.
It looks like there is a defect with this use case. (See: [VS] "Auto check-in local files" fails when adding a file using Windows Explorer (in combination with the auto-detect changes preference) (327031))
It was fixed in 6.0.
Comments
Anthony Kesterton
JAZZ DEVELOPER Feb 03 '15, 2:57 p.m.Hi Bill - it is not quite clear how you are working. Your files are only placed under RTC source control (or any form of source control plugin in Eclipse) if there is an Eclipse project shared using Team->Share Project. How are you managing to bypass this step? Apologies if I misunderstood your explanation.
anthony
William Bailey
Feb 03 '15, 3:18 p.m.Hey Anthony,