public class PatchProjectUtil
extends java.lang.Object
patchProject(com.intellij.openapi.project.Project)
.InspectionApplication
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.util.regex.Pattern,java.util.Set<java.util.regex.Pattern>> |
loadPatterns(java.lang.String propertyKey)
Parses patterns for exclude items.
|
static void |
patchProject(Project project)
Excludes folders specified in patterns in the
idea.exclude.patterns system property from the project. |
static void |
patchProject(Project project,
java.util.Map<java.util.regex.Pattern,java.util.Set<java.util.regex.Pattern>> excludePatterns,
java.util.Map<java.util.regex.Pattern,java.util.Set<java.util.regex.Pattern>> includePatterns) |
static void |
processIncluded(ContentEntry contentEntry,
java.util.Set<? extends VirtualFile> included) |
public static void patchProject(Project project)
idea.exclude.patterns
system property from the project.
Pattern syntax:
patterns := pattern(';'pattern)*
pattern := ('['moduleRegEx']')? directoryAntPattern
moduleRegex
- regular expression to match module name.
directoryAntPattern
- ant-style pattern to match folder in a module.
directoryAntPattern
considers paths relative to a content root of a module.
Example:
-Didea.exclude.patterns=testData/**;.reports/**;[sql]/test/*.sql;[graph]/**;[graph-openapi]/**
In this example the testData/**
pattern is applied to all modules
and the pattern /test/*.sql
to applied to the module sql
only.
project
- project to patchpublic static void patchProject(Project project, java.util.Map<java.util.regex.Pattern,java.util.Set<java.util.regex.Pattern>> excludePatterns, java.util.Map<java.util.regex.Pattern,java.util.Set<java.util.regex.Pattern>> includePatterns)
public static void processIncluded(ContentEntry contentEntry, java.util.Set<? extends VirtualFile> included)
public static java.util.Map<java.util.regex.Pattern,java.util.Set<java.util.regex.Pattern>> loadPatterns(java.lang.String propertyKey)
propertyKey
- system property key for patternModulePattern -> DirectoryPattern*
.
ModulePattern may be null (meaning that a directory pattern is applied to all modules).