May help with bug reported - 32583,

Sorry I seem to have lost my bugzilla details and I'm in a real rush to get out the office!

Kev
Index: ChangeLogParser.java
===================================================================
RCS file: 
/home/cvspublic/ant/src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogParser.java,v
retrieving revision 1.28
diff -u -r1.28 ChangeLogParser.java
--- ChangeLogParser.java        6 Dec 2004 17:35:42 -0000       1.28
+++ ChangeLogParser.java        8 Dec 2004 12:20:34 -0000
@@ -28,7 +28,7 @@
  *
  * @version $Revision: 1.28 $ $Date: 2004/12/06 17:35:42 $
  */
-class ChangeLogParser {
+public class ChangeLogParser {
     //private static final int GET_ENTRY = 0;
     private static final int GET_FILE = 1;
     private static final int GET_DATE = 2;
@@ -227,7 +227,13 @@
         } catch (ParseException e) {
             //final String message = REZ.getString( 
"changelog.bat-date.error", date );
             //getContext().error( message );
-            return null;
+            try {
+                //try different date format
+                return INPUT_DATE.parse(date.replaceAll("-", "/"));
+            } catch (ParseException pe) {
+                return null;
+            }
+            
         }
     }
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to