ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Cvs.java
Date Fri, 23 Jun 2000 14:50:35 GMT
bodewig     00/06/23 07:50:34

  Modified:    docs     index.html
               src/main/org/apache/tools/ant/taskdefs Cvs.java
  Log:
  Added date attribute to CVS task.
  Submitted by:	Steven_Yelton@adware.com
  
  Revision  Changes    Path
  1.27      +6 -0      jakarta-ant/docs/index.html
  
  Index: index.html
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/docs/index.html,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- index.html	2000/06/23 14:38:18	1.26
  +++ index.html	2000/06/23 14:50:32	1.27
  @@ -15,6 +15,7 @@
     <li>Stefan Bodewig (<a href="mailto:stefan.bodewig@megabit.net">stefan.bodewig@megabit.net</a>)</li>
     <li>James Duncan Davison (<a href="mailto:duncan@x180.com">duncan@x180.com</a>)</li>
     <li>Tom Dimock (<a href="mailto:tad1@cornell.edu">tad1@cornell.edu</a>)</li>
  +  <li>Bill Kelly (<a href="mailto:bill.kelly@softwired-inc.com">bill.kelly@softwired-inc.com</a>)</li>
     <li>Arnout J. Kuiper (<a href="mailto:ajkuiper@wxs.nl">ajkuiper@wxs.nl</a>)</li>
     <li>Stefano Mazzocchi (<a href="mailto:stefano@apache.org">stefano@apache.org</a>)</li>
     <li>Sam Ruby (<a href="mailto:rubys@us.ibm.com">rubys@us.ibm.com</a>)</li>
  @@ -770,6 +771,11 @@
     <tr>
       <td valign="top">tag</td>
       <td valign="top">the tag of the package/module to check out.</td>
  +    <td align="center" valign="top">No</td>
  +  </tr>
  +  <tr>
  +    <td valign="top">date</td>
  +    <td valign="top">Use the most recent revision no later than the given date</td>
       <td align="center" valign="top">No</td>
     </tr>
     <tr>
  
  
  
  1.6       +11 -0     jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Cvs.java
  
  Index: Cvs.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Cvs.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Cvs.java	2000/06/17 15:38:42	1.5
  +++ Cvs.java	2000/06/23 14:50:34	1.6
  @@ -69,6 +69,7 @@
       private String cvsRoot;
       private String pack;
       private String tag;
  +    private String date;
       private String command = "checkout";
       private boolean quiet = false;
       private boolean noexec = false;
  @@ -91,6 +92,9 @@
   	if (tag!=null)
               sb.append("-r ").append(tag).append(" ");
   
  +       if (date!=null)
  +            sb.append("-D ").append(date).append(" ");
  +
   	if (pack != null) {
               sb.append(pack);
   	}
  @@ -125,6 +129,13 @@
   
           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