net.sf.ant4eclipse.model.project.cvsproject
Class CvsParser

java.lang.Object
  extended by net.sf.ant4eclipse.model.project.cvsproject.CvsParser

public class CvsParser
extends java.lang.Object

Helper for parsing cvs information.


Method Summary
static boolean isCvsProject(EclipseProject project)
          Returns whether the specified project
static java.lang.String readCvsRepositoryName(EclipseProject project)
          Reads the name of the CVS repository.
static CvsRoot readCvsRoot(EclipseProject project)
          Reads the content of the CVS root file.
static java.lang.String readTag(EclipseProject project)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isCvsProject

public static boolean isCvsProject(EclipseProject project)
Returns whether the specified project

Parameters:
project - The EclipseProject instance where to lookup the CVS root file.
Returns:
true <=> The CVS project has been set.

readCvsRepositoryName

public static java.lang.String readCvsRepositoryName(EclipseProject project)
                                              throws FileParserException
Reads the name of the CVS repository.

Parameters:
project - The EclipseProject instance where to read the repository name from.
Returns:
The name of the CVS repository.
Throws:
FileParserException - Loading the content failed for some reason.

readCvsRoot

public static CvsRoot readCvsRoot(EclipseProject project)
                           throws FileParserException
Reads the content of the CVS root file.

Parameters:
project - The EclipseProject instance where to look for a CVS root file.
Returns:
A CVSRoot instance associated with the supplied project.
Throws:
FileParserException - Loading the root file failed.

readTag

public static java.lang.String readTag(EclipseProject project)
                                throws FileParserException
Throws:
FileParserException