VCS : how to know if a VirtualFile is "ignored" ?

In the changes tab, there is a dialog to add some files/pattersn/masks to be ignored from the vcs.

I'm wondering how this is supposed to be used from the openAPI ChangeProvider ?

5 comments

Forget this, i finally found it myself :

Have to use com.intellij.openapi.vcs.changes.ChangeListManager#isIgnoredFile

0

I still can't ignore all the i'd like though, here is my case/setup

I have a multi module maven project.
I want to ignore, for each module, relative to the module content root
- any .iml file : done using mask
- any text backup files (.~ by jedit, or *.bak) , done using mask and mask
- the target directory, and any files under it. I've tried using directory or using masks but can't get it right.

Has anyone managed to ignore directories using the vcs ignored dialog ?

Attached is my ignored settings



Attachment(s):
ignored.jpg
0

Any clue for solving this ?

I have a project containing several (in my case about 60 different) modules , say A, B and C
Each of those modules have eclipse project files (.classpath, .project for example) at their root which have been committed in the VCS , and also a maven target repository.

I want to ignore both of these, how should you set this in the VCS ignored files dialog ?

0

Hello Thibaut,

Any clue for solving this ?

I have a project containing several (in my case about 60 different)
modules , say A, B and C

Each of those modules have eclipse project files (.classpath, .project
for example) at their root which have been committed in the VCS , and
also a maven target repository.

I want to ignore both of these, how should you set this in the VCS
ignored files dialog ?


For .classpath and .project, just use "Ignore all files matching" with .classpath,
and once more with .project

For target directories, you'll have to list them individually using "Ignore
all files under". There is currently no possibility to specify "Ignore all
files under all directories with specified name" or something like this in
one step.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.