0

All, I read about ignoring folders in subversion like this:

How do I ignore a directory with SVN?

My Repository structure is like this:

ParentFolder
---|MY_REPO
----------|folder1
-----------------|MyPrj
------------------------|src
------------------------|bin
------------------------|.project
------------------------|.classpath

Now the bin folder automatically gets generated when ever someone imports the eclipse project ("MyPrj") in eclipse. And the classes automatically gets created within the bin folder.

I want to set a rule on the svn server (repository) so that the users will get to see the bin folder but once they build the project using eclipse they DO NOT see a '?' symbol in the class files and folders in bin folder. I want to avoid having any user accidentally comitting the file/folder changes.

Is it possible in subversion?

Thanks

Community
  • 1
  • 1
Ayusman
  • 8,149
  • 20
  • 74
  • 130
  • Did the instructions in the link not work? – Mike Jun 06 '11 at 11:43
  • @Mike I used the tortoise SVN... Right clicked on the bin folder, and "Tortoise SVN"-->"Properties"-->and the svn:ignore looks like this "com *.class *.mf" etc... The bin folder still shows the red exclamation button suggesting something is still pending. This is what I do not want. – Ayusman Jun 06 '11 at 13:00
  • But have you actually added "bin" into the ignore list? – Mike Jun 06 '11 at 13:31
  • @Mike no not the bin folder. I though I just need to ignore all folders inside bin. is it not correct? – Ayusman Jun 06 '11 at 14:45
  • Don't you want to just ignore bin altogether? – Mike Jun 06 '11 at 14:49
  • @Mike, well I did not try putting the bin folder in the ignore list. But it should just work for com folder that gets created under bin folder. The problem gets worst when I am trying to mark the 'com' folder under WEB-INF\classes to ignore list. it somehow applies the ignore list to the src folder of my web project and deletes the com folder from within the src folder. I am completely clueless after many many commits, updates cleanups without any result :-( I have finally reverted all the changes and still looking for an answer. – Ayusman Jun 06 '11 at 15:51
  • Was the bin folder already in the repository before you set the ignore property? – Mike Jun 07 '11 at 20:21
  • unfortunately yes Mike. And seems like all the trouble is due to that folder being present in the repository in initial few versions. – Ayusman Jun 09 '11 at 17:09
  • You need to delete it from the repository. – Mike Jun 10 '11 at 08:30
  • @Mike, for a simple java project that may be ok, what about a dynamic web project as created in eclipse? When I add the ignore pattern on the classes folder surprisingly for no reason the pattern gets applied to my 'src' folder and all the folders get deleted. But I will try your advice on the java project first. – Ayusman Jun 10 '11 at 09:50

0 Answers0