diff --git a/lib/resourceFactory.js b/lib/resourceFactory.js index b535dfc9..ee8761a5 100644 --- a/lib/resourceFactory.js +++ b/lib/resourceFactory.js @@ -59,7 +59,12 @@ const resourceFactory = { } dependencyPathIndex[key] = true; - const fsReader = resourceFactory.createAdapter({fsBasePath, virBasePath, project}); + const fsReader = resourceFactory.createAdapter({ + fsBasePath, + virBasePath, + excludes: project.builder.excludes, // TODO: builder might be undefined + project + }); fsReaders.push(fsReader); } } @@ -92,7 +97,10 @@ const resourceFactory = { virBasePath = "/resources/" + tree.metadata.namespace + virBasePath; } sourceResourceLocators.push(resourceFactory.createAdapter({ - fsBasePath, virBasePath, project: tree + fsBasePath, + virBasePath, + excludes: tree.builder.excludes, // TODO: builder might be undefined + project: tree })); } }