o start allowing for other SCM products.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114489 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jvanzyl 2003-12-17 21:34:19 +00:00
parent 1dda5e5fff
commit d40ab72564
2 changed files with 103 additions and 0 deletions

View File

@ -0,0 +1,101 @@
<?xml version="1.0" encoding="$encoding" ?>
<document>
<properties>
<title>CVS</title>
</properties>
<body>
#set ($repository = $project.repository)
#if (!$repository)
<section name="Repository">
<p>
No SCM repository is defined.
</p>
</section>
#else
#set ($url = $escape.getText($repository.url))
#if ($repository.url && $repository.url != '')
<section name="Web Access">
<p>
<a href="$url">$url</a>
</p>
</section>
#end
#if ($repository.connection && $repository.connection != '')
#set ($connscm = $repository.getScmType())
#if ($connscm == 'cvs')
#set ($conn = $repository.getCvsRoot($repository.connection, ''))
#set ($module = $repository.getCvsModule($repository.connection))
<section name="Anonymous CVS Access">
<p>
This project's CVS repository can be checked out through anonymous (pserver)
CVS with the following instruction set.
When prompted for a password for anonymous, simply press the Enter key.
</p>
<p>
cvs -d $conn login
<br/>
cvs -z3 -d $conn co $module
</p>
<p>
Updates from within the module's directory do not need the -d parameter.
</p>
</section>
#end
#end
#if ($repository.developerConnection && $repository.developerConnection != '')
#set ($connscm = $repository.getScmType())
#if ($connscm == 'cvs')
#set ($conn = $repository.getCvsRoot($repository.developerConnection, 'username'))
#set ($module = $repository.getCvsModule($repository.developerConnection))
#set ($server = $repository.getCvsServer($repository.developerConnection))
<section name="Developer CVS Access via SSH">
<p>
Only project developers can access the CVS tree via this method.
SSH1 must be installed on your client machine. Substitute
<b>name</b> with the proper value. Enter your site password when prompted.
</p>
<p>
export CVS_RSH=ssh
<br/>
cvs -z3 -d $conn co $module
</p>
<p>
Remember to replace 'username' with your actual username on $server.
</p>
</section>
#end
#end
#if ($repository.url && $repository.url != '')
<section name="CVS Access behind a firewall">
<p>
For those developers who are stuck behind a corporate
firewall, <a href="http://cvsgrab.sourceforge.net/">CVSGrab</a>
can use the viewcvs web interface to checkout the source code.
</p>
</section>
#end
#end
</body>
</document>

View File

@ -0,0 +1,2 @@
o we templates and instructions for each of the SCM products, we probably
should also keep in mind instructions in different languages.