You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by St...@adware.com on 2000/06/22 20:11:49 UTC

Proposed patch to CVS.java to support dates




This small patch adds a date attribute to the Cvs task.  This is needed when you
 wish to export files from a particular date (instead of with a tag)


--- src/main/org/apache/tools/ant/taskdefs/Cvs.java     Thu Jun 22 13:50:40 2000
+++ src/main/org/apache/tools/ant/taskdefs/Cvs.java.orig        Thu Jun 22
13:43:38 2000
@@ -69,7 +69,6 @@
     private String cvsRoot;
     private String pack;
     private String tag;
-    private String date;
     private String command = "checkout";
     private boolean quiet = false;
     private boolean noexec = false;
@@ -92,9 +91,6 @@
        if (tag!=null)
             sb.append("-r ").append(tag).append(" ");

-       if (date!=null)
-            sb.append("-D ").append(date).append(" ");
-
        if (pack != null) {
             sb.append(pack);
        }
@@ -129,12 +125,6 @@

         this.tag = p;
     }
-
-    public void setDate(String p) {
-       if( p != null && p.trim().length()==0 )
-               p = null;
-       this.date = p;
-    }

     public void setCommand(String c) {
        this.command = c;
~