obtaining a list of excluded folders (from module roots)

Hi,

I currently have a problem in the mks problem which is caused by the fact that determining which files are unversionned is an expensive operation.

I believe that this is mostly because i query Mks for all "non members" of a sandbox, including the output folders (that are usually excluded from the module configuration).

From what I understand of the ChangeProvider interface, the vcs plugin is only asked to refresh files returned by com.intellij.openapi.vcs.changes.VcsDirtyScope#getRecursivelyDirtyDirectories (and com.intellij.openapi.vcs.changes.VcsDirtyScope#getDirtyFiles) but those directories may have excluded folders as children.

The way the Mks integration works is you ask non members for a sandbox, with the possibility to exclude some folders. Is there any way that I could query the IDEA Project for a list of excluded roots ?

2 comments
Comment actions Permalink

Hello Thibaut,

I currently have a problem in the mks problem which is caused by the
fact that determining which files are unversionned is an expensive
operation.

I believe that this is mostly because i query Mks for all "non
members" of a sandbox, including the output folders (that are usually
excluded from the module configuration).

From what I understand of the ChangeProvider interface, the vcs plugin
is only asked to refresh files returned by
com.intellij.openapi.vcs.changes.VcsDirtyScope#getRecursivelyDirtyDire
ctories (and
com.intellij.openapi.vcs.changes.VcsDirtyScope#getDirtyFiles) but
those directories may have excluded folders as children.

The way the Mks integration works is you ask non members for a
sandbox, with the possibility to exclude some folders. Is there any
way that I could query the IDEA Project for a list of excluded roots ?


ModuleRootManager.getInstance(module).getExcludeRoots() returns you the list
of exclude roots for a particular module.

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


0

Please sign in to leave a comment.