| java.lang.Object org.netbeans.lib.cvsclient.util.DefaultIgnoreFileFilter
DefaultIgnoreFileFilter | public class DefaultIgnoreFileFilter implements IgnoreFileFilter(Code) | | author: Milos Kleint, Thomas Singer |
Method Summary | |
public void | addPattern(StringPattern pattern) Adds a StringPattern to the list of ignore file patters. | public void | addPattern(String pattern) Adds a string to the list of ignore file patters using the SimpleStringPattern. | public void | clearPatterns() Clears the list of patters. | public static List | parseCvsIgnoreFile(File cvsIgnoreFile) Utility method that reads the .cvsignore file and returns a list of Strings. | public boolean | shouldBeIgnored(File directory, String noneCvsFile) A file is checked against the patterns in the filter.
If any of these matches, the file should be ignored. |
DefaultIgnoreFileFilter | public DefaultIgnoreFileFilter()(Code) | | |
DefaultIgnoreFileFilter | public DefaultIgnoreFileFilter(List patternList)(Code) | | Creates new DefaultIgnoreFileFilter and fills in patterns.
Parameters: patternList - - list of objects, patterns are retrievedvia the Object.toString() method. |
addPattern | public void addPattern(StringPattern pattern)(Code) | | Adds a StringPattern to the list of ignore file patters.
|
addPattern | public void addPattern(String pattern)(Code) | | Adds a string to the list of ignore file patters using the SimpleStringPattern.
|
clearPatterns | public void clearPatterns()(Code) | | Clears the list of patters.
To be used when the "!" character is used in any of the .cvsignore lists.
|
parseCvsIgnoreFile | public static List parseCvsIgnoreFile(File cvsIgnoreFile) throws IOException, FileNotFoundException(Code) | | Utility method that reads the .cvsignore file and returns a list of Strings.
These strings represent the patterns read from the file.
|
shouldBeIgnored | public boolean shouldBeIgnored(File directory, String noneCvsFile)(Code) | | A file is checked against the patterns in the filter.
If any of these matches, the file should be ignored. A file will also
be ignored, if its name matches any local .cvsignore file
entry.
Parameters: directory - is a file object that refers to the directory the file resides in. Parameters: noneCvsFile - is the name of the file to be checked. |
|
|