MCPcopy Create free account
hub / github.com/SAP/ui5-project / getWorkspace

Method getWorkspace

lib/specifications/ComponentProject.js:192–201  ·  view source on GitHub ↗

* Get a resource reader/writer for accessing and modifying a project's resources * * @public * @returns {@ui5/fs/ReaderCollection} A reader collection instance

()

Source from the content-addressed store, hash-verified

190 * @returns {@ui5/fs/ReaderCollection} A reader collection instance
191 */
192 getWorkspace() {
193 // Workspace is always of style "buildtime"
194 // Therefore builder resource-excludes are always to be applied
195 const excludes = this.getBuilderResourcesExcludes();
196 return resourceFactory.createWorkspace({
197 name: `Workspace for project ${this.getName()}`,
198 reader: this._getReader(excludes),
199 writer: this._getWriter().collection
200 });
201 }
202
203 _getWriter() {
204 if (!this._writers) {

Callers

nothing calls this directly

Calls 4

_getReaderMethod · 0.95
_getWriterMethod · 0.95
getNameMethod · 0.45

Tested by

no test coverage detected