net.sourceforge.cvsgrab
Class CVSGrab

java.lang.Object
  extended by net.sourceforge.cvsgrab.CVSGrab

public class CVSGrab
extends Object

Application class for CVSGrab.
CVSGrab loads and updates the files from the ViewCVS web interface of a CVS repository

Version:
1.0
Author:
Ludovic Claude
Created:
April 19, 2002

Field Summary
static String CLEAN_UPDATE_OPTION
           
static String CONNECTIONS_OPTION
           
static String CVS_ROOT_OPTION
           
static String DEBUG_OPTION
           
static String DEBUG_WIRE_OPTION
           
static String DEST_DIR_OPTION
           
static String DIFF_CMD
           
static String DUMMY_ROOT
          The dummy root to use if the cvsRoot option is not set
static String HELP_CMD
           
static String LIST_WEB_INTERFACES_CMD
           
static String PACKAGE_DIR_OPTION
           
static String PACKAGE_PATH_OPTION
           
static String PROJECT_ROOT_OPTION
           
static String PROXY_HOST_OPTION
           
static String PROXY_NTDOMAIN_OPTION
           
static String PROXY_PASSWORD_OPTION
           
static String PROXY_PORT_OPTION
           
static String PROXY_USER_OPTION
           
static String PRUNE_OPTION
           
static String QUERY_PARAMS_OPTION
           
static String QUIET_OPTION
           
static String ROOT_URL_OPTION
           
static String TAG_OPTION
           
static String URL_OPTION
           
static String VERBOSE_OPTION
           
static String WEB_INTERFACE_OPTION
           
static String WEB_PASSWORD_OPTION
           
static String WEB_USER_OPTION
           
 
Constructor Summary
CVSGrab()
          Constructor for the CVSGrab object
 
Method Summary
 void diffCVSRepository()
          Builds the differences against the remote repository
 String getCvsRoot()
           
 String getDestDir()
           
static org.apache.commons.logging.Log getLog()
           
 String getPackageDir()
           
 String getPackagePath()
           
 String getProjectRoot()
           
 boolean getPruneEmptyDirs()
          Gets the prune empty dirs
 String getQueryParams()
           
 String getRootUrl()
           
 String getVersionTag()
           
 String getWebInterfaceId()
          Gets the webInterfaceId.
 WebOptions getWebOptions()
           
 void grabCVSRepository()
          Main method for getting and updating files.
 boolean isCleanUpdate()
          Gets the cleanUpdate.
static void main(String[] args)
          The main program for the CVSGrab class
 void printHelp()
          Prints help for the command line program
static void printWebInterfaces()
          Prints the list of available web interfaces
 void setCleanUpdate(boolean cleanUpdate)
          Sets the cleanUpdate.
 void setCvsRoot(String cvsRoot)
          Sets the cvs root.
 void setDestDir(String destDir)
          Sets the destination directory for the files to be retrieved from the repository
static void setLog(org.apache.commons.logging.Log log)
           
 void setPackageDir(String packageDir)
           
 void setPruneEmptyDirs(boolean value)
          Sets the prune empty dirs
 void setUrl(String url)
          Analyse the root url and try to extract the package path, version tag and web options parameters from it
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DUMMY_ROOT

public static final String DUMMY_ROOT
The dummy root to use if the cvsRoot option is not set

See Also:
Constant Field Values

CONNECTIONS_OPTION

public static final String CONNECTIONS_OPTION
See Also:
Constant Field Values

WEB_PASSWORD_OPTION

public static final String WEB_PASSWORD_OPTION
See Also:
Constant Field Values

WEB_USER_OPTION

public static final String WEB_USER_OPTION
See Also:
Constant Field Values

PROXY_PASSWORD_OPTION

public static final String PROXY_PASSWORD_OPTION
See Also:
Constant Field Values

PROXY_USER_OPTION

public static final String PROXY_USER_OPTION
See Also:
Constant Field Values

PROXY_NTDOMAIN_OPTION

public static final String PROXY_NTDOMAIN_OPTION
See Also:
Constant Field Values

PROXY_PORT_OPTION

public static final String PROXY_PORT_OPTION
See Also:
Constant Field Values

PROXY_HOST_OPTION

public static final String PROXY_HOST_OPTION
See Also:
Constant Field Values

PRUNE_OPTION

public static final String PRUNE_OPTION
See Also:
Constant Field Values

QUIET_OPTION

public static final String QUIET_OPTION
See Also:
Constant Field Values

VERBOSE_OPTION

public static final String VERBOSE_OPTION
See Also:
Constant Field Values

DEBUG_WIRE_OPTION

public static final String DEBUG_WIRE_OPTION
See Also:
Constant Field Values

DEBUG_OPTION

public static final String DEBUG_OPTION
See Also:
Constant Field Values

CVS_ROOT_OPTION

public static final String CVS_ROOT_OPTION
See Also:
Constant Field Values

WEB_INTERFACE_OPTION

public static final String WEB_INTERFACE_OPTION
See Also:
Constant Field Values

PROJECT_ROOT_OPTION

public static final String PROJECT_ROOT_OPTION
See Also:
Constant Field Values

QUERY_PARAMS_OPTION

public static final String QUERY_PARAMS_OPTION
See Also:
Constant Field Values

TAG_OPTION

public static final String TAG_OPTION
See Also:
Constant Field Values

PACKAGE_DIR_OPTION

public static final String PACKAGE_DIR_OPTION
See Also:
Constant Field Values

DEST_DIR_OPTION

public static final String DEST_DIR_OPTION
See Also:
Constant Field Values

PACKAGE_PATH_OPTION

public static final String PACKAGE_PATH_OPTION
See Also:
Constant Field Values

ROOT_URL_OPTION

public static final String ROOT_URL_OPTION
See Also:
Constant Field Values

URL_OPTION

public static final String URL_OPTION
See Also:
Constant Field Values

CLEAN_UPDATE_OPTION

public static final String CLEAN_UPDATE_OPTION
See Also:
Constant Field Values

LIST_WEB_INTERFACES_CMD

public static final String LIST_WEB_INTERFACES_CMD
See Also:
Constant Field Values

DIFF_CMD

public static final String DIFF_CMD
See Also:
Constant Field Values

HELP_CMD

public static final String HELP_CMD
See Also:
Constant Field Values
Constructor Detail

CVSGrab

public CVSGrab()
Constructor for the CVSGrab object

Method Detail

getLog

public static org.apache.commons.logging.Log getLog()

setLog

public static void setLog(org.apache.commons.logging.Log log)

main

public static void main(String[] args)
The main program for the CVSGrab class

Parameters:
args - The command line arguments

printHelp

public void printHelp()
Prints help for the command line program


printWebInterfaces

public static void printWebInterfaces()
Prints the list of available web interfaces


getPruneEmptyDirs

public boolean getPruneEmptyDirs()
Gets the prune empty dirs

Returns:
The pruneEmptyDirs value

setPruneEmptyDirs

public void setPruneEmptyDirs(boolean value)
Sets the prune empty dirs

Parameters:
value - The new pruneEmptyDirs value

isCleanUpdate

public boolean isCleanUpdate()
Gets the cleanUpdate.

Returns:
the cleanUpdate.

setCleanUpdate

public void setCleanUpdate(boolean cleanUpdate)
Sets the cleanUpdate.

Parameters:
cleanUpdate - The cleanUpdate to set.

getRootUrl

public String getRootUrl()
Returns:
Returns the rootUrl.

getPackagePath

public String getPackagePath()
Returns:
Returns the packagePath.

getDestDir

public String getDestDir()
Returns:
Returns the destDir.

setDestDir

public void setDestDir(String destDir)
Sets the destination directory for the files to be retrieved from the repository

Parameters:
destDir - The destDir to set.

getPackageDir

public String getPackageDir()
Returns:
Returns the packageDir.

setPackageDir

public void setPackageDir(String packageDir)
Parameters:
packageDir - The packageDir to set.

getCvsRoot

public String getCvsRoot()
Returns:
Returns the cvsRoot.

setCvsRoot

public void setCvsRoot(String cvsRoot)
Sets the cvs root. This is used by CVSGrab only to rebuild the CVS admin files that may be used later by a standard CVS client.

Parameters:
cvsRoot - The cvsRoot to set.

getProjectRoot

public String getProjectRoot()
Returns:
The project root, used by CVS with multiple repositories

getVersionTag

public String getVersionTag()
Returns:
Returns the versionTag.

getQueryParams

public String getQueryParams()
Returns:
Returns the queryParams.

getWebInterfaceId

public String getWebInterfaceId()
Gets the webInterfaceId.

Returns:
the webInterfaceId.

getWebOptions

public WebOptions getWebOptions()
Returns:
the web options

setUrl

public void setUrl(String url)
Analyse the root url and try to extract the package path, version tag and web options parameters from it


grabCVSRepository

public void grabCVSRepository()
Main method for getting and updating files.


diffCVSRepository

public void diffCVSRepository()
Builds the differences against the remote repository



Copyright © 2002-2005 Ludovic Claude. All Rights Reserved.