dion        2003/08/05 08:10:10

  Modified:    src/plugins-build/xdoc/src/plugin-resources/templates
                        cvs-usage.xml
  Log:
  Fixes for MAVEN-595
  
  Revision  Changes    Path
  1.7       +65 -49    
maven/src/plugins-build/xdoc/src/plugin-resources/templates/cvs-usage.xml
  
  Index: cvs-usage.xml
  ===================================================================
  RCS file: 
/home/cvs/maven/src/plugins-build/xdoc/src/plugin-resources/templates/cvs-usage.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- cvs-usage.xml     10 Jul 2003 00:48:45 -0000      1.6
  +++ cvs-usage.xml     5 Aug 2003 15:10:10 -0000       1.7
  @@ -17,59 +17,75 @@
         </section>
       #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))
     
  -    <section name="Web Access">
  -      <p>
  -        <a href="$url">$url</a>
  -      </p>
  -    </section>
  +      #if ($repository.url)
  +      <section name="Web Access">
  +        <p>
  +          <a href="$url">$url</a>
  +        </p>
  +      </section>
  +      #end
       
  -    <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>
  +      #if ($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>
  -
  -    <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>
  -
  -    </section>
  -
  -    <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>
  +        <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
  +
  +      #if ($repository.developerConnection)
  +        #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
  +
  +      #if ($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>
  +      </section>
  +      #end
   
       #end
     </body>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to