ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 4871] - the cvs task does not have a mechanism to set CVS_RSH
Date Thu, 15 Nov 2001 17:27:23 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4871>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4871

the cvs task does not have a mechanism to set CVS_RSH





------- Additional Comments From john.giacomoni@colorado.edu  2001-11-15 09:27 -------
easily done.  here are the new patches.

--- cvs.html.orig       Thu Nov 15 08:26:10 2001
+++ cvs.html    Thu Nov 15 08:26:47 2001
@@ -31,6 +31,11 @@
     <td align="center" valign="top">No</td>
   </tr>
   <tr>
+    <td valign="top">cvsRsh</td>
+    <td valign="top">the CVS_RSH variable.</td>
+    <td align="center" valign="top">No</td>
+  </tr>
+  <tr>
     <td valign="top">dest</td>
     <td valign="top">the directory where the checked out files should be
placed.</td>
     <td align="center" valign="top">No, default is project's basedir.</td>




--- Cvs.java.orig       Thu Nov 15 10:22:50 2001
+++ Cvs.java    Thu Nov 15 10:22:52 2001
@@ -77,6 +77,11 @@
     private String cvsRoot;
 
     /**
+     * the CVS_RSH variable.
+     */
+    private String cvsRsh = null;
+
+    /**
      * the package/module to check out.
      */
     private String pack;
@@ -172,6 +177,13 @@
             env.addVariable(var);
         }
 
+        if(cvsRsh!=null){
+            Environment.Variable var = new Environment.Variable();
+            var.setKey("CVS_RSH");
+            var.setValue(String.valueOf(cvsRsh));
+            env.addVariable(var);
+        }
+
         ExecuteStreamHandler streamhandler = null;
         OutputStream outputstream = null;
         OutputStream errorstream = null; 
@@ -241,6 +253,16 @@
         } 
 
         this.cvsRoot = root;
+    }
+
+    public void setCvsRsh(String rsh) {
+        // Check if not real cvsrsh => set it to null
+        if (rsh != null) {
+            if (rsh.trim().equals(""))
+                rsh = null;
+        }
+
+        this.cvsRsh = rsh;
     }
 
     public void setPort(int port){

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message