4069a.diff
| rules/reports/rpt_file_list.xml 2019-07-26 17:37:47 +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="srcname" 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("srcname")
|
|
| 105 |
<action>srcname = getNoteString("srcname")</action>
|
|
| 106 |
<action on='false'>srcname = 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(srcname) |
|
| 114 |
</action> |
|
| 115 |
</rule> |
|
| 116 | 116 |
</walk-rules> |
| 117 | 117 |
</rule-set> |
| 118 | 118 |
|