Browse Source

The cvschangelog task doesn't seem to report changes for the current

calendar day.

The problem lies in the fact that the exec'ed cvs command is in the form:
> cvs log "-d >=2002-11-7"
rather than:
> cvs log -d ">=2002-11-7"

The two commands return different results when changes have been made today!

PR: 14397
Submitted by:	Paul Berrevoets <paul at swi.com>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273550 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 22 years ago
parent
commit
092cd9e58f
2 changed files with 6 additions and 4 deletions
  1. +2
    -0
      WHATSNEW
  2. +4
    -4
      src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogTask.java

+ 2
- 0
WHATSNEW View File

@@ -53,6 +53,8 @@ Fixed bugs:
* <cvstagdiff> would throw a NullPointException if there had been no * <cvstagdiff> would throw a NullPointException if there had been no
differences. differences.


* <cvschangelog> could miss today's changes.

Other changes: Other changes:
-------------- --------------
* <setproxy> lets you set the username and password for proxies that want authentication * <setproxy> lets you set the username and password for proxies that want authentication


+ 4
- 4
src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogTask.java View File

@@ -249,9 +249,10 @@ public class ChangeLogTask extends Task {
new SimpleDateFormat("yyyy-MM-dd"); new SimpleDateFormat("yyyy-MM-dd");


// We want something of the form: -d ">=YYYY-MM-dd" // We want something of the form: -d ">=YYYY-MM-dd"
final String dateRange = "-d >="
+ outputDate.format(m_start);
final String dateRange = ">=" + outputDate.format(m_start);


// Supply '-d' as a separate argument - Bug# 14397
command.createArgument().setValue("-d");
command.createArgument().setValue(dateRange); command.createArgument().setValue(dateRange);
} }


@@ -275,8 +276,7 @@ public class ChangeLogTask extends Task {
final RedirectingStreamHandler handler = final RedirectingStreamHandler handler =
new RedirectingStreamHandler(parser); new RedirectingStreamHandler(parser);


log("ChangeLog command: [" + command.toString() + "]",
Project.MSG_VERBOSE);
log(command.describeCommand(), Project.MSG_VERBOSE);


final Execute exe = new Execute(handler); final Execute exe = new Execute(handler);




Loading…
Cancel
Save