aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2014-03-19 18:17:35 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2014-03-19 18:17:47 +0100
commit02b1910cacbc3c5e563d55779ea13bb0c6dca528 (patch)
treee10013ab72ad212013266e4bd718fc8cbd7e727d /sonar-server/src
parentd2e4e15af717fb40f974d6b3d2988c42b1ff97fe (diff)
downloadsonarqube-02b1910cacbc3c5e563d55779ea13bb0c6dca528.tar.gz
sonarqube-02b1910cacbc3c5e563d55779ea13bb0c6dca528.zip
SONAR-926 improve documentation of exclusion settings
Diffstat (limited to 'sonar-server/src')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb67
1 files changed, 32 insertions, 35 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb
index c8160461a3e..586698c4ea2 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb
@@ -99,74 +99,71 @@
<td>?</td>
<td>Match a single character</td>
</tr>
- <tr>
- <td>file:</td>
- <td>Prefix to define a pattern based on absolute path</td>
- </tr>
</table>
<br>
<table class="data">
- <thead><tr><th>Example</th><th>Description</th><th>Matches</th></tr></thead>
+ <thead><tr><th>Example</th><th>Matches</th><th>Does not match</th></tr></thead>
<tbody>
<tr>
- <td>src/java/org/mycompany/*.java</td>
- <td>matches all <code>.java</code> files in the directory <code>src/java/org/mycompany</code></td>
+ <td>**/foo/*.js</td>
<td>
<ul>
- <li>src/java/org/mycompany/Foo.java</li>
- <li>src/java/org/mycompany/Bar.java</li>
+ <li>src/foo/bar.js</li>
+ <li>lib/ui/foo/bar.js</li>
</ul>
</td>
- </tr>
- <tr>
- <td>src/java/org/*Model*.java</td>
- <td>matches all <code>.java</code> files with <code>Model</code> in filename and in the directory <code>src/java/org</code></td>
<td>
<ul>
- <li>src/java/org/Model.java</li>
- <li>src/java/org/FirstModel.java</li>
- <li>src/java/org/ModelTest.java</li>
+ <li>src/bar.js</li>
+ <li>src/foo2/bar.js</li>
</ul>
</td>
</tr>
<tr>
- <td>src/java/org/**</td>
- <td>matches all files underneath the directory <code>src/java/org</code></td>
+ <td>src/foo/*bar*.js</td>
+ <td>
+ <ul>
+ <li>src/foo/bar.js</li>
+ <li>src/foo/bar1.js</li>
+ <li>src/foo/bar123.js</li>
+ <li>src/foo/123bar123.js</li>
+ </ul>
+ </td>
<td>
<ul>
- <li>src/java/org/Foo.java</li>
- <li>src/java/org/foo/bar.jsp</li>
+ <li>src/foo/ui/bar.js</li>
+ <li>src/bar.js</li>
</ul>
</td>
</tr>
<tr>
- <td>src/java/org/**/Dummy.java</td>
- <td>matches all <code>Dummy.java</code> files underneath the directory <code>src/java/org</code></td>
+ <td>src/foo/**</td>
<td>
<ul>
- <li>src/java/org/Dummy.java</li>
- <li>src/java/org/foo/Dummy.java</li>
- <li>src/java/org/foo/bar/Dummy.java</li>
+ <li>src/foo/bar.js</li>
+ <li>src/foo/ui/bar.js</li>
+ </ul>
+ </td>
+ <td>
+ <ul>
+ <li>src/bar/foo/bar.js</li>
+ <li>src/bar.js</li>
</ul>
</td>
</tr>
<tr>
- <td>src/java/org/**/*.java</td>
- <td>matches all <code>.java</code> files underneath the directory <code>src/java/org</code></td>
+ <td>**/foo?.js</td>
<td>
<ul>
- <li>src/java/org/Foo.java</li>
- <li>src/java/org/foo/Bar.java</li>
- <li>src/java/org/foo/bar/Baz.java</li>
+ <li>src/foo1.js</li>
+ <li>src/bar/foo1.js</li>
</ul>
</td>
- </tr>
- <tr>
- <td>file:**/generated/**</td>
- <td>matches all files whose one parent directory is 'generated'</td>
<td>
<ul>
- <li>/path/to/project/tmp/generated/org/castor/Model.java</li>
+ <li>src/foo.js</li>
+ <li>src/foo12.js</li>
+ <li>src/12foo3.js</li>
</ul>
</td>
</tr>