Community
Participate
Working Groups
I have a project with a 'Build' directory, and in my project have '.cvsignore' with the 'Build' directory mentioned. However, if I have a program that generates temporary files in the 'Build' directory (subsequently picked up after a refresh) then next time I synchronize with the repository, I get a message saying 'The following files have been created; do you want to add them?' It also includes resources that are in the .cvsignore directory, which IMHO it shouldn't do. Otherwise, it might be too easy to add resources into the CVS server that shouldn't be put there.
One possible cause of this is that your build directory is shared. Does your build directory exist oin your repository (i.e. if you expand yoir project in the Repositories view, does the build folder appear)?
No, the build directory does not exist in the CVS server (having gone in and looked for it manually). However, I think I was having some problems with the build directory, and (after a re-import of the project) it copied over the CVS files into the build directory before me telling it that the project was supposed to be shared. So even though my .cvsignore had 'Build' in the top level, there were some CVS directories in the sub- levels which may have been causing this problem. The only way I could fix it was to manually delete the CVS directories from disk, do a refresh (but that didn't solve the team resources being flagged as being stored), then close and re-open the project. After those steps, the Build directory's subdirs didnt' show up as being shared. Suspect this may have been a one-off, but I can see it happening again: o Create a Team project (with a separate src/build directory) o Add the build directory to .cvsignore o Share it in a CVS repo o Remove the project from the workspace o Import the project into the workspace o Rebuild project/all o Note that the CVS entries are copied into the build dir o Team-> Share Project o (Build contains CVS entries, thinks that even though Build isn't in the repo, Build/SomeFile.java is) o Delete all Build/**/CVS/ o Refresh project o Close project o Open project That will take you through the steps I did, and probably have the order behind what is causing the issue.
Now I understand. The project was imported before the CVS plugin was loaded. This is a known issue for which we do not yet have a solution. Having said that, we should have detected that the CVS folders in the build directory were copied. The only time there should be a problem is if the build directory is shared. I will investigate.
*** This bug has been marked as a duplicate of 36483 ***
Yup, dupe.