vmassol     02/05/27 10:53:49

  Modified:    proposal/gump/java Module.java
               proposal/gump/site/xdocs repository.xml
  Log:
  added support for optional user, password and hostname attributes (for example if 
you have a local CVS server and are using the :local: protocol, you cannot specify 
these parameters)
  
  Revision  Changes    Path
  1.16      +13 -7     jakarta-alexandria/proposal/gump/java/Module.java
  
  Index: Module.java
  ===================================================================
  RCS file: /home/cvs/jakarta-alexandria/proposal/gump/java/Module.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- Module.java       23 Apr 2002 17:45:32 -0000      1.15
  +++ Module.java       27 May 2002 17:53:49 -0000      1.16
  @@ -219,16 +219,22 @@
                      "\" not found processing module " + name);
               }
                
  -            String cvsroot = ":" + r.get("method");
  -            cvsroot += ":" + r.get("user");
  +            String cvsroot = ":" + r.get("method") + ":";
   
  -            cvsroot += "@";
  -            if (cvs.getAttributeNode("host-prefix") != null) {
  -                cvsroot += cvs.getAttribute("host-prefix") + ".";
  +            if (r.get("user").length() > 0) {
  +                cvsroot += r.get("user");
               }
  -            cvsroot += r.get("hostname");
   
  -            cvsroot += ":" + r.get("path");
  +            if (r.get("hostname").length() > 0) {
  +
  +                cvsroot += "@";
  +                if (cvs.getAttributeNode("host-prefix") != null) {
  +                    cvsroot += cvs.getAttribute("host-prefix") + ".";
  +                }
  +                cvsroot += r.get("hostname") + ":";
  +            }
  +
  +            cvsroot += r.get("path");
               if (cvs.getAttributeNode("dir") != null) {
                   cvsroot += "/" + cvs.getAttribute("dir");
               }
  
  
  
  1.4       +3 -3      jakarta-alexandria/proposal/gump/site/xdocs/repository.xml
  
  Index: repository.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-alexandria/proposal/gump/site/xdocs/repository.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- repository.xml    29 Oct 2001 02:07:57 -0000      1.3
  +++ repository.xml    27 May 2002 17:53:49 -0000      1.4
  @@ -79,17 +79,17 @@
           <tr>
             <td>user</td>
             <td></td>
  -          <td>Yes</td>
  +          <td>No</td>
           </tr>
           <tr>
             <td>password</td>
             <td></td>
  -          <td>Yes</td>
  +          <td>No</td>
           </tr>
           <tr>
             <td>hostname</td>
             <td></td>
  -          <td>Yes</td>
  +          <td>No</td>
           </tr>
           <tr>
             <td>path</td>
  
  
  

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

Reply via email to