Author: faridz Date: Mon May 14 06:29:04 2007 New Revision: 537827 URL: http://svn.apache.org/viewvc?view=rev&rev=537827 Log: 2007-05-14 Farid Zaripov <[EMAIL PROTECTED]>
* summary.js (checkForFailures, readBuildLog): Added check to avoid JScript runtime error: Input past end of file Project. * utilities.js (stripTags): Remove "</pre>" from build log. Modified: incubator/stdcxx/trunk/etc/config/windows/summary.js incubator/stdcxx/trunk/etc/config/windows/utilities.js Modified: incubator/stdcxx/trunk/etc/config/windows/summary.js URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/windows/summary.js?view=diff&rev=537827&r1=537826&r2=537827 ============================================================================== --- incubator/stdcxx/trunk/etc/config/windows/summary.js (original) +++ incubator/stdcxx/trunk/etc/config/windows/summary.js Mon May 14 06:29:04 2007 @@ -68,7 +68,7 @@ return; } - var blogData = blogFile.ReadAll(); + var blogData = blogFile.AtEndOfStream ? "" : blogFile.ReadAll(); var posTmp = getCommandLinesInfo(itemInfo, blogData, 0); posTmp = getCompilationInfo(itemInfo, blogData, posTmp); @@ -665,7 +665,7 @@ var blogFile = fso.OpenTextFile(testFolder.Path + "\\" + htmFileName, 1, false, uniMode); - var blogData = blogFile.ReadAll(); + var blogData = blogFile.AtEndOfStream ? "" : blogFile.ReadAll(); var posTmp = getCommandLinesInfo(testInfo, blogData, 0); posTmp = getCompilationInfo(testInfo, blogData, posTmp); Modified: incubator/stdcxx/trunk/etc/config/windows/utilities.js URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/windows/utilities.js?view=diff&rev=537827&r1=537826&r2=537827 ============================================================================== --- incubator/stdcxx/trunk/etc/config/windows/utilities.js (original) +++ incubator/stdcxx/trunk/etc/config/windows/utilities.js Mon May 14 06:29:04 2007 @@ -320,7 +320,8 @@ .replace(new RegExp("><", "g"), ">\r\n<") .replace(new RegExp("(^<[\\s\\S]+?>)", "gm"), "") .replace(new RegExp("\r", "g"), "") - .replace(new RegExp("\n{2,}", "g"), "\n\n"); + .replace(new RegExp("\n{2,}", "g"), "\n\n") + .replace(new RegExp("</pre>", "g"), ""); } // returns source string without first character if it equal to symbol