File tree 1 file changed +12
-0
lines changed
src/main/java/se/bjurr/gitchangelog/plugin
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 7
7
import java .io .File ;
8
8
import java .util .Date ;
9
9
import java .util .List ;
10
+ import java .util .Map ;
10
11
import org .apache .maven .plugin .AbstractMojo ;
11
12
import org .apache .maven .plugin .MojoExecutionException ;
12
13
import org .apache .maven .plugins .annotations .Mojo ;
@@ -32,6 +33,9 @@ public class GitChangelogMojo extends AbstractMojo {
32
33
@ Parameter (property = "settingsFile" , required = false )
33
34
private String settingsFile ;
34
35
36
+ @ Parameter (property = "extendedVariables" , required = false )
37
+ private Map extendedVariables ;
38
+
35
39
@ Parameter (property = "templateFile" , required = false )
36
40
private String templateFile ;
37
41
@@ -135,6 +139,10 @@ public void execute() throws MojoExecutionException {
135
139
builder .withSettings (new File (settingsFile ).toURI ().toURL ());
136
140
}
137
141
142
+ if (isSupplied (extendedVariables )) {
143
+ builder .withExtendedVariables (extendedVariables );
144
+ }
145
+
138
146
if (isSupplied (toRef )) {
139
147
builder .withToRef (toRef );
140
148
}
@@ -254,4 +262,8 @@ public void execute() throws MojoExecutionException {
254
262
private boolean isSupplied (String parameter ) {
255
263
return !isNullOrEmpty (parameter );
256
264
}
265
+
266
+ private boolean isSupplied (final Map <?, ?> parameter ) {
267
+ return parameter != null && !parameter .isEmpty ();
268
+ }
257
269
}
You can’t perform that action at this time.
0 commit comments