Browse Source

Added date attribute to CVS task.

Submitted by:	Steven_Yelton@adware.com


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267689 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 25 years ago
parent
commit
c7f9557b5f
2 changed files with 17 additions and 0 deletions
  1. +6
    -0
      docs/index.html
  2. +11
    -0
      src/main/org/apache/tools/ant/taskdefs/Cvs.java

+ 6
- 0
docs/index.html View File

@@ -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>
@@ -772,6 +773,11 @@ preferred over the <i>checkout</i> command, because of speed.</p>
<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>
<td valign="top">quiet</td>
<td valign="top">supress informational messages.</td>


+ 11
- 0
src/main/org/apache/tools/ant/taskdefs/Cvs.java View File

@@ -69,6 +69,7 @@ public class Cvs extends Exec {
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 @@ public class Cvs extends Exec {
if (tag!=null)
sb.append("-r ").append(tag).append(" ");

if (date!=null)
sb.append("-D ").append(date).append(" ");

if (pack != null) {
sb.append(pack);
}
@@ -126,6 +130,13 @@ public class Cvs extends Exec {
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;
}


Loading…
Cancel
Save