Skip to content

Commit 1e208ab

Browse files
committed
[INTERNAL] TaskUtil: Always pass resource instance to ResourceTagCollection
To ensure it has access to any resources that might be concealed by a ResourceFacade.
1 parent eba016f commit 1e208ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/tasks/TaskUtil.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class TaskUtil {
7373
}
7474

7575
const collection = this._projectBuildContext.getResourceTagCollection(resource, tag);
76-
return collection.setTag(resource.getPath(), tag, value);
76+
return collection.setTag(resource, tag, value);
7777
}
7878

7979
/**
@@ -95,7 +95,7 @@ class TaskUtil {
9595
"Since UI5 Tooling 3.0, getTag requires a resource instance. Strings are no longer accepted");
9696
}
9797
const collection = this._projectBuildContext.getResourceTagCollection(resource, tag);
98-
return collection.getTag(resource.getPath(), tag);
98+
return collection.getTag(resource, tag);
9999
}
100100

101101
/**
@@ -116,7 +116,7 @@ class TaskUtil {
116116
"Since UI5 Tooling 3.0, clearTag requires a resource instance. Strings are no longer accepted");
117117
}
118118
const collection = this._projectBuildContext.getResourceTagCollection(resource, tag);
119-
return collection.clearTag(resource.getPath(), tag);
119+
return collection.clearTag(resource, tag);
120120
}
121121

122122
/**

0 commit comments

Comments
 (0)