Skip to content

Commit d684c77

Browse files
authored
Merge pull request #19 from gab1one/add-path-filter
Add support for pathfilter
2 parents d8a503e + c0420be commit d684c77

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/se/bjurr/gitchangelog/plugin/GitChangelogMojo.java

+7
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ public class GitChangelogMojo extends AbstractMojo {
126126
@Parameter(property = "skip", required = false)
127127
private Boolean skip;
128128

129+
@Parameter(property = "pathFilter", required = false)
130+
private String pathFilter;
131+
129132
@Override
130133
public void execute() throws MojoExecutionException {
131134
if (skip != null && skip == true) {
@@ -231,6 +234,10 @@ public void execute() throws MojoExecutionException {
231234
builder.withJiraServer(jiraServer);
232235
}
233236

237+
if (isSupplied(pathFilter)) {
238+
builder.withPathFilter(pathFilter);
239+
}
240+
234241
if (file == null && !isSupplied(mediaWikiUrl)) {
235242
getLog().info("No output set, using file " + DEFAULT_FILE);
236243
file = new File(DEFAULT_FILE);

0 commit comments

Comments
 (0)