File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
maven-plugin/src/main/java/org/openmrs/maven/plugins
sdk-commons/src/main/java/org/openmrs/maven/plugins/model Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,11 @@ private DistroProperties resolveDistroProperties(Server server) throws MojoExecu
227
227
String keyStr = (String ) key ;
228
228
properties .setProperty (keyStr , distroProperties .getParam (keyStr ));
229
229
}
230
+ List <String > exclusions = distroProperties .getExclusions ();
231
+
232
+ for (String exclusion : exclusions ) {
233
+ properties .remove (exclusion );
234
+ }
230
235
distroProperties = new DistroProperties (properties );
231
236
} else {
232
237
server .setPlatformVersion (
Original file line number Diff line number Diff line change 14
14
import java .io .FileOutputStream ;
15
15
import java .io .IOException ;
16
16
import java .util .ArrayList ;
17
+ import java .util .Arrays ;
17
18
import java .util .HashSet ;
18
19
import java .util .List ;
19
20
import java .util .Map ;
@@ -262,6 +263,14 @@ public Set<Object> getAllKeys() {
262
263
return properties .keySet ();
263
264
}
264
265
266
+ public List <String > getExclusions () {
267
+ String exclusions = getParam ("exclusions" );
268
+ if (exclusions == null ) {
269
+ return new ArrayList <>();
270
+ }
271
+ return Arrays .asList (exclusions .split ("," ));
272
+ }
273
+
265
274
private String getPlaceholderKey (String string ){
266
275
int startIndex = string .indexOf ("${" )+2 ;
267
276
int endIndex = string .indexOf ("}" , startIndex );
You can’t perform that action at this time.
0 commit comments