You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by fa...@apache.org on 2007/05/14 15:29:05 UTC

svn commit: r537827 - in /incubator/stdcxx/trunk/etc/config/windows: summary.js utilities.js

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 <Fa...@epam.com>

	* 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