From d40ab72564dd7620113e8e307bb0af9ea53a24c7 Mon Sep 17 00:00:00 2001 From: jvanzyl Date: Wed, 17 Dec 2003 21:34:19 +0000 Subject: [PATCH] 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 --- .../plugin-resources/templates/scm/cvs.xml | 101 ++++++++++++++++++ .../plugin-resources/templates/scm/notes.txt | 2 + 2 files changed, 103 insertions(+) create mode 100644 xdoc/src/plugin-resources/templates/scm/cvs.xml create mode 100644 xdoc/src/plugin-resources/templates/scm/notes.txt diff --git a/xdoc/src/plugin-resources/templates/scm/cvs.xml b/xdoc/src/plugin-resources/templates/scm/cvs.xml new file mode 100644 index 00000000..b8762591 --- /dev/null +++ b/xdoc/src/plugin-resources/templates/scm/cvs.xml @@ -0,0 +1,101 @@ + + + + + + CVS + + + + #set ($repository = $project.repository) + + #if (!$repository) +
+

+ No SCM repository is defined. +

+
+ #else + + #set ($url = $escape.getText($repository.url)) + + #if ($repository.url && $repository.url != '') +
+

+ $url +

+
+ #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)) +
+

+ 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. +

+ +

+ cvs -d $conn login +
+ cvs -z3 -d $conn co $module +

+ +

+ Updates from within the module's directory do not need the -d parameter. +

+
+ #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)) + +
+ +

+ Only project developers can access the CVS tree via this method. + SSH1 must be installed on your client machine. Substitute + name with the proper value. Enter your site password when prompted. +

+ +

+ export CVS_RSH=ssh +
+ cvs -z3 -d $conn co $module +

+ +

+ Remember to replace 'username' with your actual username on $server. +

+ +
+ #end + #end + + #if ($repository.url && $repository.url != '') +
+ +

+ For those developers who are stuck behind a corporate + firewall, CVSGrab + can use the viewcvs web interface to checkout the source code. +

+ +
+ #end + + #end + + +
+ diff --git a/xdoc/src/plugin-resources/templates/scm/notes.txt b/xdoc/src/plugin-resources/templates/scm/notes.txt new file mode 100644 index 00000000..c0a6e3d9 --- /dev/null +++ b/xdoc/src/plugin-resources/templates/scm/notes.txt @@ -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.