Index: Module.java
===================================================================
RCS file: /home/cvspublic/jakarta-alexandria/proposal/gump/java/Module.java,v
retrieving revision 1.14
diff -u -r1.14 Module.java
--- Module.java	15 Mar 2002 07:41:58 -0000	1.14
+++ Module.java	6 Apr 2002 19:04:36 -0000
@@ -216,16 +216,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");
             }
