com.ice.cvsc
Class CVSIgnore

java.lang.Object
  |
  +--com.ice.cvsc.CVSIgnore

public class CVSIgnore
extends java.lang.Object


Field Summary
static java.lang.String RCS_ID
           
static java.lang.String RCS_REV
           
 
Constructor Summary
CVSIgnore()
          Constructs a new CVSIgnore object.
CVSIgnore(java.lang.String default_spec)
          Constructs a new CVSIgnore object, setting the ignore's list to that specified by the parameter.
 
Method Summary
 void addIgnoreFile(java.io.File ignoreFile)
          Adds the cvsignore specifications from the file provided to the current list of ignored files.
 void addIgnoreSpec(java.lang.String spec)
          Adds the cvsignore specifications to the current list of ignored files.
 void dumpIgnoreList(java.lang.String message)
           
 boolean isFileToBeIgnored(java.lang.String name)
          Determines if a file is to be ignored.
 void setIgnoreSpec(java.lang.String spec)
          Replaces all current ignore specs with those passed in.
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RCS_ID

public static final java.lang.String RCS_ID
See Also:
Constant Field Values

RCS_REV

public static final java.lang.String RCS_REV
See Also:
Constant Field Values
Constructor Detail

CVSIgnore

public CVSIgnore()
Constructs a new CVSIgnore object.


CVSIgnore

public CVSIgnore(java.lang.String default_spec)
Constructs a new CVSIgnore object, setting the ignore's list to that specified by the parameter.

Parameters:
default_spec - The default ignore specs.
Method Detail

size

public int size()

addIgnoreSpec

public void addIgnoreSpec(java.lang.String spec)
Adds the cvsignore specifications to the current list of ignored files.

Parameters:
spec - The string listing the specs to add.

addIgnoreFile

public void addIgnoreFile(java.io.File ignoreFile)
Adds the cvsignore specifications from the file provided to the current list of ignored files.

Parameters:
ignoreFile - The file containing the ignore specs.

setIgnoreSpec

public void setIgnoreSpec(java.lang.String spec)
Replaces all current ignore specs with those passed in.

Parameters:
spec - The string listing the specs to replace with.

isFileToBeIgnored

public boolean isFileToBeIgnored(java.lang.String name)
Determines if a file is to be ignored.

Parameters:
name - The name of the file to check.
Returns:
If the file is to be ignored, true, else false.

dumpIgnoreList

public void dumpIgnoreList(java.lang.String message)


Copyright © 1997-2003, Timothy G. Endres, All Rights Reserved.