Skip to content

Commit

Permalink
[FIX] Fixes: SAP#546
Browse files Browse the repository at this point in the history
  • Loading branch information
kristian committed Aug 21, 2021
1 parent 7490fb1 commit 909d187
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/builder/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ module.exports = {
log.verbose("Finished building project %s. Writing out files...", project.metadata.name);
buildLogger.completeWork(1);

return workspace.byGlob("/**/*.*").then((resources) => {
return workspace.byGlob("**/*").then((resources) => {
const tagCollection = projectContext.getResourceTagCollection();
return Promise.all(resources.map((resource) => {
if (tagCollection.getTag(resource, projectContext.STANDARD_TAGS.OmitFromBuildResult)) {
Expand Down
1 change: 1 addition & 0 deletions test/expected/build/application.a/dest-deps-excl/file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
anyfile
1 change: 1 addition & 0 deletions test/expected/build/application.a/dest-deps/file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
anyfile
1 change: 1 addition & 0 deletions test/expected/build/application.a/dest-depself/file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
anyfile
1 change: 1 addition & 0 deletions test/expected/build/application.a/dest-dev/file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
anyfile
1 change: 1 addition & 0 deletions test/expected/build/application.a/dest-self/file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
anyfile
1 change: 1 addition & 0 deletions test/expected/build/application.a/dest/file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
anyfile
1 change: 1 addition & 0 deletions test/fixtures/application.a/webapp/file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
anyfile
4 changes: 2 additions & 2 deletions test/lib/builder/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ test.serial("Build", async (t) => {
t.true(appBuildParams.taskUtil instanceof DummyTaskUtil, "Correct taskUtil instance provided to type");

t.is(getResourceTagCollectionStub.callCount, 1, "getResourceTagCollection called once");
t.is(getTagStub.callCount, 2, "getTag called once");
t.is(getTagStub.callCount, 3, "getTag called three times");
t.deepEqual(getTagStub.getCall(0).args[1], "👻", "First getTag call with expected tag name");
t.deepEqual(getTagStub.getCall(1).args[1], "👻", "Second getTag call with expected tag name");
t.is(isRootProjectStub.callCount, 2, "isRootProject called once");
t.is(isRootProjectStub.callCount, 3, "isRootProject called three times");
t.is(executeCleanupTasksStub.callCount, 1, "Cleanup called once");
});

Expand Down

0 comments on commit 909d187

Please sign in to comment.