From fd76737f1a4fe5331129eb2d72c340ff11b7f91f Mon Sep 17 00:00:00 2001 From: dion Date: Tue, 5 Aug 2003 15:10:10 +0000 Subject: [PATCH] Fixes for MAVEN-595 git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113803 13f79535-47bb-0310-9956-ffa450edef68 --- changelog/plugin.jelly | 5 +- developer-activity/plugin.jelly | 5 +- file-activity/plugin.jelly | 5 +- .../plugin-resources/templates/cvs-usage.xml | 102 ++++++++++-------- 4 files changed, 71 insertions(+), 46 deletions(-) diff --git a/changelog/plugin.jelly b/changelog/plugin.jelly index 318a86b6..c02c75a8 100644 --- a/changelog/plugin.jelly +++ b/changelog/plugin.jelly @@ -46,6 +46,9 @@ ${pom.repository.connection} + + ${pom.repository.developerConnection} + Generating the changelog report @@ -56,7 +59,7 @@ output="${maven.build.dir}/changelog.xml" outputEncoding="${maven.docs.outputencoding}" range="${maven.changelog.range}" - repositoryConnection="${pom.repository.connection}" + repositoryConnection="${_connection}" dateFormat="${maven.changelog.dateformat}" /> diff --git a/developer-activity/plugin.jelly b/developer-activity/plugin.jelly index ccfad81a..5c4c5c1c 100644 --- a/developer-activity/plugin.jelly +++ b/developer-activity/plugin.jelly @@ -41,6 +41,9 @@ ${pom.repository.connection} + + ${pom.repository.developerConnection} + Generating the developer activity report @@ -63,7 +66,7 @@ output="${maven.build.dir}/changelog.xml" outputEncoding="${maven.docs.outputencoding}" range="${maven.activitylog.range}" - repositoryConnection="${pom.repository.connection}" + repositoryConnection="${_connection}" dateFormat="${maven.changelog.dateformat}" /> diff --git a/file-activity/plugin.jelly b/file-activity/plugin.jelly index 2096f852..e94ffc14 100644 --- a/file-activity/plugin.jelly +++ b/file-activity/plugin.jelly @@ -50,6 +50,9 @@ ${pom.repository.connection} + + ${pom.repository.developerConnection} + Generating the file activity report @@ -72,7 +75,7 @@ output="${maven.build.dir}/changelog.xml" outputEncoding="${maven.docs.outputencoding}" range="${maven.activitylog.range}" - repositoryConnection="${pom.repository.connection}" + repositoryConnection="${_connection}" dateFormat="${maven.changelog.dateformat}" /> diff --git a/xdoc/src/plugin-resources/templates/cvs-usage.xml b/xdoc/src/plugin-resources/templates/cvs-usage.xml index 6b0951d5..c2d26155 100644 --- a/xdoc/src/plugin-resources/templates/cvs-usage.xml +++ b/xdoc/src/plugin-resources/templates/cvs-usage.xml @@ -17,59 +17,75 @@ #else - #set ($conn = $repository.cvsRoot) - #set ($module = $repository.cvsModule) - #set ($url = $escape.getText($project.repository.url)) + #set ($conn = $repository.getCvsRoot($repository.connection, '')) + #set ($module = $repository.getCvsModule($repository.connection)) + #set ($url = $escape.getText($repository.url)) -
-

- $url -

-
+ #if ($repository.url) +
+

+ $url +

+
+ #end -
-

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

+ #if ($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 -

+

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

-

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

-
+

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

+
+ #end -
+ #if ($repository.developerConnection) + #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. -

+

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

+

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

+ +

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

-
+
+ #end -
+ #if ($repository.url) +
+ +

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

-

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

- -
+
+ #end #end