From the command line, use cvsgrab.bat or cvsgrab.sh to
Type cvsgrab -help to get help
You may need to define the CVSGRAB_HOME environment
property if you want to call cvsgrab.bat from any location.
It works like the ANT_HOME or JAVA_HOME property: put in CVSGRAB_HOME the location of your CVSGrab installation.
Open your browser, go the the page that contains the root of the directory you want to download.
For example, if you want to download the sources of Jakarta's Ant tool, open your browser with
To get the sources from this repository, simply type on the command line:
cvsgrab -url http://cvs.apache.org/viewcvs.cgi/ant/
Now if you wanted the 1.6 branch of Ant, in 'Show files using tag' at the bottom of the web page,
select ANT_16_BRANCH and press the Show button. Copy the new url to the clipboard, and type on the command line:
cvsgrab -url http://cvs.apache.org/viewcvs.cgi/ant/?only_with_tag=ANT_16_BRANCH -connections 3 -clean -prune
Note the -connections 3 option that speeds up downloads by allowing up to 3 concurrent downloads of files, -clean that forces cvsgrab to get the latest version of the file and override the local version (backup-ed if there were changes made to it), and -prune that removes empty directories.
The following examples are provided for the few times the url autodetection feature of CVSGrab doesn't work,
plus some advanced feature like compatibility with ViewCVS/TortoiseCVS/any thoer cvs client, speeding transfer
with multiple concurrent downloads and more.
If you discover a site that doesn't work with the -url option, or if the version of the files returned is incorrect, please let me know and file a bug report
cvsgrab -url http://cvs.sourceforge.net/viewcvs.py/cvsgrab/cvsgrab/ -destDir c:/tmp -packageDir CVSGrab
Note the -packageDir option that is used to avoid getting a folder called cvsgrab containing another folder called cvsgrab also on the disk.
cvsgrab -rootUrl http://dev.eclipse.org/viewcvs/index.cgi/ -packagePath org.eclipse.ant.core -destDir c:/tmp -proxyHost cache.myorg.com -proxyPort 8080
cvsgrab -rootUrl http://dev.eclipse.org/viewcvs/index.cgi/ -packagePath org.eclipse.ercp -destDir c:\tmp -projectRoot Technology_Project
Note the -projectRoot option used by ViewCVS 1.0 when it's configured to work with multiple repositories (you should see a dropdown box with the label 'Project Root' on the web page). It's value is also the same as the root parameter from the url.
cvsgrab -rootUrl http://cvs.apache.org/viewcvs.cgi/ -packagePath maven -destDir c:\tmp -tag MAVEN_1_0_RC1 -cvsRoot :pserver:firstname.lastname@example.org:/home/cvspublic
Note the -cvsRoot option. This option is useful as it helps CVSGrab to build the CVS admin files in the same format as other CVS tools, like CVSGui / WinCVS, so if you manage to get a direct connection to the internet without a firewall, you can use with no changes the repository checked out by CVSGrab with WinCVS for example.
cvsgrab -rootUrl http://javacvs.netbeans.org/source/browse/ -packagePath javacvs -destDir c:\tmp -connections 3
Note the -connections option that allows up to 3
simultaneous downloads, to get faster downloads.
Great when uploading sources from a cvs repository for the first time.
cvsgrab -rootUrl https://webwork.dev.java.net/source/browse/webwork/ -packagePath src -destDir c:\tmp -packageDir webwork-src