# HG changeset patch # User Shabe Razvi # Date 1243615489 -3600 # Node ID d827d1eea85e8b43f7ac9abca84410e615b7ebbe # Parent a4079a41ca7f8b539148dd8ab0a67de79b2a44c7# Parent 6c171c40e0123c3024a926225ef52f93bd7a6fe4 Merge to default branch diff -r a4079a41ca7f -r d827d1eea85e common/build.xml --- a/common/build.xml Fri May 29 17:44:02 2009 +0100 +++ b/common/build.xml Fri May 29 17:44:49 2009 +0100 @@ -73,6 +73,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [SF-PREBUILD] @@ -199,6 +258,13 @@ + + + + + + + diff -r a4079a41ca7f -r d827d1eea85e common/common_props.ant.xml --- a/common/common_props.ant.xml Fri May 29 17:44:02 2009 +0100 +++ b/common/common_props.ant.xml Fri May 29 17:44:49 2009 +0100 @@ -14,7 +14,9 @@ - + + + @@ -78,6 +80,13 @@ + + + + + + + diff -r a4079a41ca7f -r d827d1eea85e common/tools/analysis/merge_csv.pl --- a/common/tools/analysis/merge_csv.pl Fri May 29 17:44:02 2009 +0100 +++ b/common/tools/analysis/merge_csv.pl Fri May 29 17:44:49 2009 +0100 @@ -17,7 +17,7 @@ use strict; my $csvfile = shift @ARGV; my $filelist = shift @ARGV; - +my $zipfile = shift @ARGV; if(! -e $csvfile) { @@ -29,7 +29,28 @@ { die "Cannot find $filelist\n"; } + my %ziptimes; + if(defined $zipfile) + { + open(ZIP,"7z l $zipfile 2>&1|") or die "Error: Couldn't look in $zipfile\n"; +# print "time,file\n"; + while( my $line = ) + { + if($line =~ m/^(\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2})\s\S{5}\s+(\d+)\s+\d+\s+(.+)$/) #ignoring packed size... + { + my $name = $3; + my $size = $2; + my $time = $1; + $name =~ s/\\/\//g; + $name = lc($name); + $ziptimes{$name} = $time; +# print "$time,$name\n"; + } + } + close ZIP; + } my %files; + open(FILES,"<$filelist") or die "Couldn't open $filelist\n"; while(my $line = ) { @@ -44,7 +65,7 @@ if($files{$file}) { - $files{$file} = $files{$file}.",".$group; + $files{$file} = $files{$file}." ".$group; #Stop polluting next column print "Multi:$file".$files{$file}."\n"; } @@ -61,7 +82,7 @@ open(RESULTS,">$resultsfile") or die "Couldn't open write to $resultsfile\n"; my $header = ; $header =~ s/\n//; - print RESULTS $header.",status\n"; + print RESULTS $header.",status,time\n"; my @fields = split(',',$header); my $targetindex = 0; my $counter = 0; @@ -93,9 +114,10 @@ { $bldinffiles{$bldinf} = 1; } - + my $found = 0; if(defined $files{$target}) - { + { + $found = 1; $line = $line.$files{$target}; if($files{$target} =~ m/fail/i) { @@ -105,6 +127,17 @@ } } } + if(defined $ziptimes{$target}) + { + if($found) + { + $line = $line.",".$ziptimes{$target}; + } + else + { + $line = $line.",,".$ziptimes{$target}; + } + } print RESULTS $line."\n"; }