Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I ignore build directory in Subclipse?

After build, I got tons of class files in build directory which is automatically generated. I don't want to commit them, so I tried to ignore them using Team -> Add to svn:ignore, but they are already grayed out.

enter image description here

I tried to remove the build directory with Project -> Clean, but interestingly Subclipse still has them when I tried to commit.

What went wrong? How can I ignore the build directory in Subclipse?

enter image description here

like image 223
prosseek Avatar asked Oct 19 '12 21:10

prosseek


People also ask

How to ignore folder in svn?

Set the svn:ignore property of the parent directory: svn propset svn:ignore dirname . If you have multiple things to ignore, separate by newlines in the property value.


2 Answers

You cannot ignore a file which is already in the svn repository. Delete that file from the repository and then try it again

like image 137
Vivek Avatar answered Oct 31 '22 20:10

Vivek


I think they already got added in the version control view and not committed yet. I hope you do n't see your files in your subclipse repository. If so, try performing a project-> team -> cleanup first.

If this doesn't work, please let me know, I will share you the steps to perform the clean-up manually.

Please note: By clean, I am not referring project clean but I am referring repository cache cleanup which is maintained in .svn folder of your project folders.

like image 42
Yogendra Singh Avatar answered Oct 31 '22 19:10

Yogendra Singh