Add raptor recipe error category armar_file_does_not_exist
authorDario Sestito <darios@symbian.org>
Wed, 28 Oct 2009 11:32:28 +0000
changeset 715 ee8b99c7aa0d
parent 714 5a7140020d52
child 716 a0829a1a0d41
Add raptor recipe error category armar_file_does_not_exist
common/tools/raptor/RaptorRecipe.pm
--- a/common/tools/raptor/RaptorRecipe.pm	Wed Oct 28 11:16:54 2009 +0000
+++ b/common/tools/raptor/RaptorRecipe.pm	Wed Oct 28 11:32:28 2009 +0000
@@ -53,6 +53,7 @@
 my $CATEGORY_RECIPEFAILURE_ARMCC_CANNOTOPENSOURCEINPUTFILE = 'armcc_cannot_open_source_input_file';
 my $CATEGORY_RECIPEFAILURE_ARMLINK_COULDNOTOPENFILE = 'armlink_could_not_open_file';
 my $CATEGORY_RECIPEFAILURE_ELF2E32_COULDNOTOPENFILE = 'elf2e32_could_not_open_file';
+my $CATEGORY_RECIPEFAILURE_ARMAR_FILEDOESNOTEXIST = 'armar_file_does_not_exist';
 
 sub process
 {
@@ -80,6 +81,12 @@
 		my $subcategory = $CATEGORY_RECIPEFAILURE_ELF2E32_COULDNOTOPENFILE;
 		RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line);
 	}
+	elsif ($text =~ m,Error: L6833E: File '.*' does not exist,)
+	{
+		$severity = $RaptorCommon::SEVERITY_MAJOR;
+		my $subcategory = $CATEGORY_RECIPEFAILURE_ARMAR_FILEDOESNOTEXIST;
+		RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line);
+	}
 	else # log everything by default
 	{
 		RaptorCommon::dump_fault($category, $subcategory, $severity, $component, $phase, $recipe, $file, $line);