Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ and svn:ignore

IntelliJ does not seem to honour svn:ignore

I use Maven to generate classes based on an annotation processor. These classes are compiled into target/generated-sources/apt

I add an svn:ignore to the target directory (placed in the parent of target) but IntelliJ still wants to commit the directory.

When I select Subversion -> Commit this directory is selected to be committed.

I cannot use the exclude option in the module properties as this directory includes source code, so it must not be excluded, it must just not be checked in. Nor can I use a global filter as it's not any specific extension I want to ignore, it is a whole directory and all the sub-directories.

BTW, I'm using IntelliJ 10.5 running on Ubuntu and SVN 1.6

like image 570
Michael Wiles Avatar asked Oct 10 '11 14:10

Michael Wiles


1 Answers

With the setting Settings > Version Control > Confirmation > When files are created set to Add silently, the file is directly added to the subversion local repository. The command ignore of the context menu is afterwards grayed out.

I found no solution but to change this setting, delete the file and create it again.

like image 75
Olivier Faucheux Avatar answered Oct 31 '22 14:10

Olivier Faucheux