Project

General

Profile

4069.diff

Vladimir Tsichevski, 07/29/2019 09:37 AM

Download (1.45 KB)

View differences:

rules/reports/rpt_file_list.xml 2019-07-29 13:35:56 +0000
87 87
   <variable name="iter"                type="java.util.Iterator" />
88 88
   <variable name="fname"               type="java.lang.String" />
89 89
   <variable name="matched"             init="false" />
90
   <variable name="srcfile"             type="java.lang.String" />
90 91
   
91 92
   <!-- pipeline of rule-sets to process -->
92 93
   
......
100 101
   <!-- create the list of matches -->
101 102
   <rule-set input="tree" >
102 103
      <init-rules>
104
         <rule>isNote("srcfile")
105
            <action>srcfile = getNoteString("srcfile")</action>
106
            <action on='false'>srcfile = file</action>
107
         </rule>
103 108
      </init-rules>
104 109
      <walk-rules>
105
        <rule>!matched and eval(condition)
106
           <rule>matched = true</rule>
107
           <rule>root.isAnnotation("srcfile")
108
              <action>
109
                 matchedFiles.add(#(java.lang.String) root.getAnnotation("srcfile"))
110
              </action>
111
              <action on="false">
112
                 matchedFiles.add(file)
113
              </action>
114
           </rule>
115
        </rule>
110
         <rule>!matched and eval(condition)
111
            <action>matched = true</action>
112
            <action>
113
               matchedFiles.add(srcfile)
114
            </action>
115
         </rule>
116 116
      </walk-rules>
117 117
   </rule-set>
118 118