From 4fb9d6deefb863c49b13bb2e918280c1be3737e0 Mon Sep 17 00:00:00 2001 From: Merlin Beutlberger Date: Wed, 22 May 2019 17:11:26 +0200 Subject: [PATCH] builder: Provide getProjectExcludes callback to resourceFactory --- lib/builder/builder.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/builder/builder.js b/lib/builder/builder.js index a4a0d415e..7571e3916 100644 --- a/lib/builder/builder.js +++ b/lib/builder/builder.js @@ -275,7 +275,12 @@ module.exports = { const projectType = typeRepository.getType(project.type); const resourceCollections = resourceFactory.createCollectionsForTree(project, { useNamespaces: true, - virtualReaders: projectWriters + virtualReaders: projectWriters, + getProjectExcludes: function(proj) { + if (proj.builder) { + return proj.builder.excludes; + } + } }); const writer = new MemAdapter({