From 0b4c9ae65f06c8948140a05cc4e4901b1698a852 Mon Sep 17 00:00:00 2001
From: Antoine Levy-Lambert
+The cvsroot and package attributes of the tagdiff element are new in ant 1.6. +
<?xml version="1.0" encoding="UTF-8"?>
-<tagdiff startTag="ANT_14" endTag="ANT_141">
+<tagdiff startTag="ANT_14" endTag="ANT_141"
+cvsroot=":pserver:anoncvs@cvs.apache.org:/home/cvspublic" package="ant">
<entry>
<file>
<name>src/main/org/apache/tools/ant/DirectoryScanner.java</name>
diff --git a/src/main/org/apache/tools/ant/taskdefs/cvslib/CvsTagDiff.java b/src/main/org/apache/tools/ant/taskdefs/cvslib/CvsTagDiff.java
index e712c0f70..63ff3a7a9 100644
--- a/src/main/org/apache/tools/ant/taskdefs/cvslib/CvsTagDiff.java
+++ b/src/main/org/apache/tools/ant/taskdefs/cvslib/CvsTagDiff.java
@@ -1,7 +1,7 @@
/*
* The Apache Software License, Version 1.1
*
- * Copyright (c) 2002 The Apache Software Foundation. All rights
+ * Copyright (c) 2002-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -351,6 +351,10 @@ public class CvsTagDiff extends AbstractCvsTask {
} else {
writer.print("endDate=\"" + m_endDate + "\" ");
}
+
+ writer.print("cvsroot=\"" + getCvsRoot() + "\" ");
+ writer.print("package=\"" + m_package + "\" ");
+
writer.println(">");
for (int i = 0, c = entries.length; i < c; i++) {
writeTagEntry(writer, entries[i]);