blob: 274175f9c4e0d180e313e9dde30be9a2f8f8026d [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="Content-Style-Type" content="text/css"/>
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"/>
<title>Inclusion and Exclusion Patterns</title>
<meta name="copyright" content="Copyright (c) 2017, 2020 Stephan Wahlbrink and others. SPDX-License-Identifier: EPL-2.0 OR Apache-2.0"/>
</head>
<body>
<h1>Inclusion and Exclusion Patterns</h1>
<p>Inclusion and Exclusion patterns can be configured for source folders. They define which
files are considered by the Java builder and other Java tooling. This set of files consists
of all files and folders where the path relative to the source folder matches an inclusion
pattern but not an exclusion pattern.
</p>
<p>By default, all files and folders contained in a source folder are included. By defining an
inclusion pattern, the set of included resources will be limited to the resources matching
the inclusion pattern. Using exclusion patterns, some of these resources can be excluded
again.
</p>
<p>Exclusion patterns are required when nesting source folders. The nested folder must be
excluded from the outer source folder.
</p>
<p>The patterns have the same format as <a href=
"http://ant.apache.org/manual/dirtasks.html#patterns">ANT patterns</a>:
</p>
<ul>
<li>'*' matches zero or more characters, '?' matches one character.
</li>
<li>'/' is used to separate folders: This means the first segment in the pattern is matched
against the most outer folder name in the path to match, the second segment with the second,
and so on.
</li>
<li>'**' matches any number of folders
</li>
</ul>
</body>
</html>