IntelliJ 和 svn:忽略
IntelliJ 似乎不支持 svn:ignore
我使用 Maven 基于注释处理器生成类。这些类被编译到 target/ generated-sources/apt 中,
我将 svn:ignore 添加到目标目录(放置在目标的父目录中),但 IntelliJ 仍然想要提交该目录。
当我选择 Subversion -> Commit 该目录被选择进行提交。
我无法在模块属性中使用排除选项,因为该目录包含源代码,因此不能排除它,也不能签入它。我也不能使用全局过滤器,因为它不是我想忽略的任何特定扩展,它是整个目录和所有子目录。
顺便说一句,我正在使用在 Ubuntu 和 SVN 1.6 上运行的 IntelliJ 10.5
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
通过设置
Settings >版本控制>确认>创建文件时
设置为静默添加
,文件将直接添加到 subversion 本地存储库。上下文菜单的命令ignore
随后会变灰。我找不到解决方案,只能更改此设置,删除该文件并重新创建它。
With the setting
Settings > Version Control > Confirmation > When files are created
set toAdd silently
, the file is directly added to the subversion local repository. The commandignore
of the context menu is afterwards grayed out.I found no solution but to change this setting, delete the file and create it again.
IntelliJ IDEA 中忽略文件的设置(
设置
|版本控制
|忽略文件
)不适用于 svn 存储库。此变体仅适用于 IDEA 配置。要为 svn repo 配置此功能,您需要定义 svn:ignore 属性。为此,您需要选择放置忽略的文件或文件夹的文件夹位置(通常是根项目目录)。接下来在顶部菜单中选择
VCS >颠覆>编辑属性
。然后你可以看到SVN Properties
对话框,你需要定义svn:ignore
属性以及忽略的文件或目录的值(用回车分隔)。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 chooseVCS > Subversion > Edit properties
. Then you can seeSVN Properties
dialog, you need definesvn:ignore
property with value of ignored files or directories (separated with enter).