DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5901>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5901 error of formatting time in DefaultLogger Summary: error of formatting time in DefaultLogger Product: Ant Version: 1.3 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Core AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] If number of seconds % 60 is 0, you write "0 seconds" (with s) Correction of formatTime method: protected static String formatTime(long millis) { long seconds = millis / 1000; long minutes = seconds / 60; if (minutes > 0) { return Long.toString(minutes) + " minute" + (minutes == 1 ? " " : "s ") + Long.toString(seconds%60) + " second" //+ (seconds%60 == 1 ? "" : "s"); + (seconds%60 > 1 ? "" : "s"); } else { return Long.toString(seconds) + " second" //+ (seconds%60 == 1 ? "" : "s"); //the "%60" is unnecessary because in else // 0 <= seconds < 60 + (seconds > 1 ? "" : "s"); } } Note that another definition of formatTime must be fixed in: org.apache.tools.ant.taskdefs.optional.ide.VAJAntToolGUI.java -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
