ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven_Yel...@adware.com
Subject Proposed patch to CVS.java to support dates
Date Thu, 22 Jun 2000 18:11:49 GMT




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;
~



Mime
View raw message