# HG changeset patch # User Arnaud Lenoir # Date 1251319942 -3600 # Node ID 065183c4417b266866824ca5a7b3393ff6693cc4 # Parent 6734444dd1f2def4df107be120825b74a93efec0 Arnaudl adding work done by Darios on raptor summarise. diff -r 6734444dd1f2 -r 065183c4417b common/tools/summary/brag_script.pl --- a/common/tools/summary/brag_script.pl Wed Aug 26 15:17:56 2009 +0100 +++ b/common/tools/summary/brag_script.pl Wed Aug 26 21:52:22 2009 +0100 @@ -583,13 +583,46 @@ # End - Check all the intermediate steps of the build process +# Copy Raptor summarise by DarioS +{ +local $/=undef; # indicates that the file will be put in one variable as one string +open(RAPTORSUMINDEX, "<$logdir\\html\\index.html"); + +my $filecontent = ; + + +# Like index.html will be called from the build_summary.html file, this means that is not calling the sub html file from the same directory \html. +# When copy index.html in the file build_summary.html, we need to include the path to \html directory +# We have: +# file:///F:/fbf_job/serviceapi_3k.T014/output/logs/raptor_unreciped.html +# We need: +# file:///F:/fbf_job/serviceapi_3k.T014/output/logs/html/raptor_unreciped.html +# This means we need to go from: +# raptor_unreciped001900 +# To: +# raptor_unreciped001900 +$filecontent =~ s/href=\'/href=\'html\\/ig; + +print BUILDSUMMARYHTML "
$filecontent
"; # copy the content of the index.html file into the build_summary.html file. + +close (RAPTORSUMINDEX); +} + +# Copy html files for raptor summarise to bishare +# options used for xcopy +# /E -> Copies directories and subdirectories, including empty ones. +# /F -> Displays full source and destination file names while copying. +# /I -> If destination does not exist and copying more than one file, assumes that destination must be a directory. +my $copy_html = "xcopy $logdir\\html \\\\bishare\\sf_builds\\$project\\builds\\$codeline\\$buildid\\html \/E \/F \/I"; +print "Exec: $copy_html\n"; +system($copy_html); + # Indicates end of the SUMMARISE section in the file print BUILDSUMMARYHTML "
#********** SUMMARISE ends here **********#

"; close(BUILDSUMMARYHTML); # Close build_summary.html - # End - Build info - Describe the completion of the diffrent steps in the build process