2 my $currentException = 0;
3 my $nearestWarning = "";
6 if($_ =~ /^* : WARNING |^WARNING: /)
13 $exceptions[$currentException] = $nearestWarning.$_;
17 $exceptions[$currentException] .= $_;
24 for ($i = 0; $i < @exceptions; $i++)
27 for($j = 0; $j < @reportOutput; $j++)
29 if($exceptions[$i] eq $reportOutput[$j])
37 for($j = 0; $j < @exceptions; $j++)
41 if($exceptions[$i] eq $exceptions[$j])
50 $callStack = $exceptions[$i];
51 $reportOutput[$reportIndex] = $exceptions[$i];
53 $dupeReport{$callStack} = $reports;
58 print "Java Exception Report: $reportIndex unique call stacks logged. Total call stacks: $currentException\n";
59 print "Detailed report follows.\n\n\n\n";
61 foreach my $key (sort{$dupeReport{$b} <=> $dupeReport{$a}} keys %dupeReport)
63 print "\n=============================================\n\n";
64 print "$dupeReport{$key} reports:\n";