-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #451 from KostyaSha/fixHelps
reference real pattern docs in help file
- Loading branch information
Showing
2 changed files
with
10 additions
and
14 deletions.
There are no files selected for viewing
12 changes: 5 additions & 7 deletions
12
...in/resources/hudson/plugins/git/extensions/impl/PathRestriction/help-excludedRegions.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
<div> | ||
Each exclusion uses regular expression pattern matching, and must be separated by a new line. | ||
Each exclusion uses <a href="http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html">java regular expression pattern matching</a>, | ||
and must be separated by a new line. | ||
<p/> | ||
<pre> | ||
myapp/src/main/web/.*\.html | ||
myapp/src/main/web/.*\.jpeg | ||
myapp/src/main/web/.*\.gif | ||
myapp/src/main/web/.*\.html | ||
myapp/src/main/web/.*\.jpeg | ||
myapp/src/main/web/.*\.gif | ||
</pre> | ||
The example above illustrates that if only html/jpeg/gif files have been committed to | ||
the SCM a build will not occur. | ||
<p/> | ||
More information on regular expressions can be found | ||
<a href="http://www.regular-expressions.info/" target="_blank">here</a>. | ||
</div> |
12 changes: 5 additions & 7 deletions
12
...in/resources/hudson/plugins/git/extensions/impl/PathRestriction/help-includedRegions.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
<div> | ||
Each inclusion uses regular expression pattern matching, and must be separated by a new line. | ||
Each inclusion uses <a href="http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html">java regular expression pattern matching</a>, | ||
and must be separated by a new line. | ||
An empty list implies that everything is included. | ||
<p/> | ||
<pre> | ||
myapp/src/main/web/.*\.html | ||
myapp/src/main/web/.*\.jpeg | ||
myapp/src/main/web/.*\.gif | ||
myapp/src/main/web/.*\.html | ||
myapp/src/main/web/.*\.jpeg | ||
myapp/src/main/web/.*\.gif | ||
</pre> | ||
The example above illustrates that a build will only occur, if html/jpeg/gif files | ||
have been committed to the SCM. Exclusions take precedence over inclusions, if there is | ||
an overlap between included and excluded regions. | ||
<p/> | ||
More information on regular expressions can be found | ||
<a href="http://www.regular-expressions.info/" target="_blank">here</a>. | ||
</div> |