com.microsoft.tfs.core.clients.versioncontrol.localworkspace
Class IgnoreFile
java.lang.Object
com.microsoft.tfs.core.clients.versioncontrol.localworkspace.IgnoreFile
public class IgnoreFile
- extends java.lang.Object
Used by LocalItemExclusionEvaluator
.
- Thread-safety:
- thread-safe
Constructor Summary |
IgnoreFile(java.lang.String directory)
|
Method Summary |
void |
addEntry(com.microsoft.tfs.core.clients.versioncontrol.localworkspace.IgnoreEntry ignoreEntry)
|
java.lang.String |
getDirectory()
|
java.lang.String |
getFullPath()
|
java.lang.Boolean |
isExcluded(java.lang.String path,
boolean isFolder,
java.lang.String startPath,
java.util.concurrent.atomic.AtomicReference<java.lang.String> exclusion)
Iterates through this IgnoreFile's list of exclusions to determine if the
item should be included, excluded, or if there is no result either way
from this IgnoreFile. |
static IgnoreFile |
load(java.lang.String directory)
|
static IgnoreFile |
load(java.lang.String directory,
java.lang.String[] ignorePatterns)
Load IgnoreFile using a pattern array |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IgnoreFile
public IgnoreFile(java.lang.String directory)
addEntry
public void addEntry(com.microsoft.tfs.core.clients.versioncontrol.localworkspace.IgnoreEntry ignoreEntry)
load
public static IgnoreFile load(java.lang.String directory)
load
public static IgnoreFile load(java.lang.String directory,
java.lang.String[] ignorePatterns)
- Load IgnoreFile using a pattern array
- Parameters:
directory
- ignorePatterns
-
- Returns:
isExcluded
public java.lang.Boolean isExcluded(java.lang.String path,
boolean isFolder,
java.lang.String startPath,
java.util.concurrent.atomic.AtomicReference<java.lang.String> exclusion)
- Iterates through this IgnoreFile's list of exclusions to determine if the
item should be included, excluded, or if there is no result either way
from this IgnoreFile.
- Parameters:
path
- the local item to check (must not be null
or empty)isFolder
- true
if the local item to check is a folder;
false
otherwisestartPath
- a local item which parents path. Only the path parts after
startPath are checked (must not be null
or empty)exclusion
- if the return value is non-null
, the exclusion which
was applied (may be null
)
- Returns:
null
if no result, true
if the item is
excluded, false
if the item is included
getDirectory
public java.lang.String getDirectory()
getFullPath
public java.lang.String getFullPath()
© 2015 Microsoft. All rights reserved.