开发者

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 开发者_JS百科SVN 1.6


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.


Setting of ignored files in IntelliJ IDEA (Settings | Version Control | Ignored Files) doesn't work for svn repo. This variant applicable as IDEA configuration only.

To configure this for svn repo you need to define svn:ignore property. To do that you need select folder location where placed ignored files or folders (usually it's root project directory). Next on top menu choose VCS > Subversion > Edit properties. Then you can see SVN Properties dialog, you need define svn:ignore property with value of ignored files or directories (separated with enter).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜