Bug 57400 - Should not ask for resources to be added into ignored directories
Summary: Should not ask for resources to be added into ignored directories
Status: CLOSED DUPLICATE of bug 36483
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Michael Valenta CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2004-04-04 20:22 EDT by Alex Blewitt CLA
Modified: 2007-01-24 06:01 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Blewitt CLA 2004-04-04 20:22:43 EDT
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.
Comment 1 Michael Valenta CLA 2004-04-05 16:36:49 EDT
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)?
Comment 2 Alex Blewitt CLA 2004-04-05 16:57:48 EDT
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.
Comment 3 Michael Valenta CLA 2004-04-05 17:07:30 EDT
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.
Comment 4 Michael Valenta CLA 2004-08-19 13:41:06 EDT

*** This bug has been marked as a duplicate of 36483 ***
Comment 5 Alex Blewitt CLA 2007-01-24 06:01:35 EST
Yup, dupe.