configurationengine/source/scripts/tests/generation_test_project/custom/implml/missing_file_in_report_test.implml
equal
deleted
inserted
replaced
|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <container xmlns="http://www.symbianfoundation.org/xml/implml/1"> |
|
3 |
|
4 <container> |
|
5 <tempVariable ref="TempFeatureMissingFile.Test1" type="string" value="testing 1"/> |
|
6 <tempVariable ref="TempFeatureMissingFile.Test2" type="string" value="testing 2"/> |
|
7 |
|
8 <container> |
|
9 <phase name="normal"/> |
|
10 <!-- TemplateML for creating two output files --> |
|
11 <templateml xmlns="http://www.s60.com/xml/templateml/1"> |
|
12 <output file="missing_output_file_test1.txt" dir="content" encoding="UTF-8"> |
|
13 <template>{{ feat_tree.TempFeatureMissingFile.Test1._value }}</template> |
|
14 </output> |
|
15 <output file="missing_output_file_test2.txt" dir="content" encoding="UTF-8"> |
|
16 <template>{{ feat_tree.TempFeatureMissingFile.Test2._value }}</template> |
|
17 </output> |
|
18 </templateml> |
|
19 </container> |
|
20 |
|
21 <!-- |
|
22 Rules for removing the output files in the post phase |
|
23 so that the output files will not be there when the report is generated |
|
24 --> |
|
25 <container> |
|
26 <phase name="post"/> |
|
27 <ruleml xmlns="http://www.s60.com/xml/ruleml/2"> |
|
28 <rule>True configures TempFeatureMissingFile.Test1 = {% delete_file('output/content/missing_output_file_test1.txt') %}</rule> |
|
29 <rule>True configures TempFeatureMissingFile.Test2 = {% delete_file('output/content/missing_output_file_test2.txt') %}</rule> |
|
30 |
|
31 <eval_globals> |
|
32 def delete_file(file): |
|
33 import os |
|
34 print "removing %s" % file |
|
35 os.remove(file) |
|
36 </eval_globals> |
|
37 </ruleml> |
|
38 </container> |
|
39 </container> |
|
40 </container> |