uh_parser/RaptorError.pm
changeset 212 914d8060176c
parent 211 c01247054e72
child 213 0244765a8d6f
equal deleted inserted replaced
211:c01247054e72 212:914d8060176c
    48 my $CATEGORY_RAPTORERROR_MAKEEXITEDWITHERRORS = 'make_exited_with_errors';
    48 my $CATEGORY_RAPTORERROR_MAKEEXITEDWITHERRORS = 'make_exited_with_errors';
    49 my $CATEGORY_RAPTORERROR_TOOLDIDNOTRETURNVERSION = 'tool_didnot_return_version';
    49 my $CATEGORY_RAPTORERROR_TOOLDIDNOTRETURNVERSION = 'tool_didnot_return_version';
    50 my $CATEGORY_RAPTORERROR_UNKNOWNBUILDCONFIG = 'unknown_build_config';
    50 my $CATEGORY_RAPTORERROR_UNKNOWNBUILDCONFIG = 'unknown_build_config';
    51 my $CATEGORY_RAPTORERROR_NOBUILDCONFIGSGIVEN = 'no_build_configs_given';
    51 my $CATEGORY_RAPTORERROR_NOBUILDCONFIGSGIVEN = 'no_build_configs_given';
    52 my $CATEGORY_RAPTORERROR_COULDNOTEXPORT = 'missing_source_file';
    52 my $CATEGORY_RAPTORERROR_COULDNOTEXPORT = 'missing_source_file';
    53 my $CATEGORY_RAPTORERROR_MISSINGBLDINFFILE = 'missing_bld_inf_file';
    53 my $CATEGORY_RAPTORERROR_CPPEXENOSUCHFILEORDIRECTORY = 'cpp_exe_no_such_file_or_directory';
    54 my $CATEGORY_RAPTORERROR_FAILEDTOPARSEXMLFILE = 'failed_to_parse_xml_file';
    54 my $CATEGORY_RAPTORERROR_FAILEDTOPARSEXMLFILE = 'failed_to_parse_xml_file';
    55 
    55 
    56 sub process
    56 sub process
    57 {
    57 {
    58 	my ($text, $logfile, $component, $mmp, $phase, $recipe, $file) = @_;
    58 	my ($text, $logfile, $component, $mmp, $phase, $recipe, $file) = @_;
   115 	{
   115 	{
   116 		$severity = $RaptorCommon::SEVERITY_MAJOR;
   116 		$severity = $RaptorCommon::SEVERITY_MAJOR;
   117 		$subcategory = $CATEGORY_RAPTORERROR_COULDNOTEXPORT;
   117 		$subcategory = $CATEGORY_RAPTORERROR_COULDNOTEXPORT;
   118 		RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file);
   118 		RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file);
   119 	}
   119 	}
   120 	elsif ($text =~ m,win32/mingw/bin/cpp\.exe: .*bld\.inf:.*bld\.inf: No such file or directory,)
   120 	elsif ($text =~ m,win32/mingw/bin/cpp\.exe:.*:.*: No such file or directory,)
   121 	{
   121 	{
   122 		$severity = $RaptorCommon::SEVERITY_MAJOR;
   122 		$severity = $RaptorCommon::SEVERITY_MAJOR;
   123 		$subcategory = $CATEGORY_RAPTORERROR_MISSINGBLDINFFILE;
   123 		$subcategory = $CATEGORY_RAPTORERROR_CPPEXENOSUCHFILEORDIRECTORY;
   124 		RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file);
   124 		RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file);
   125 	}
   125 	}
   126 	elsif ($text =~ m,^Preprocessor exception: ''Errors in .*bld\.inf'' : in command,)
   126 	elsif ($text =~ m,^Preprocessor exception: ''Errors in .*'' : in command,)
   127 	{
   127 	{
   128 		# don't dump
   128 		# don't dump
   129 		$dumped = 0;
   129 		$dumped = 0;
   130 	}
   130 	}
   131 	elsif ($text =~ m,Source of export does not exist: .*,)
   131 	elsif ($text =~ m,Source of export does not exist: .*,)