Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return depPromise.then(() => {
if (projects[project.metadata.name]) {
return Promise.resolve();
} else {
projects[project.metadata.name] = true;
}
buildLogger.startWork(`Building project ${project.metadata.name}`);
const projectType = typeRepository.getType(project.type);
const resourceCollections = resourceFactory.createCollectionsForTree(project, {
virtualReaders: projectWriters,
getVirtualBasePathPrefix: function({project, virBasePath}) {
if (project.type === "application" && project.metadata.namespace) {
return "/resources/" + project.metadata.namespace;
}
},
getProjectExcludes: function(project) {
if (project.builder && project.builder.resources) {
return project.builder.resources.excludes;
}
}
});
const writer = new MemAdapter({
virBasePath: "/"
});