Skip to content

Commit a644520

Browse files
committed
[PoC] ZipArchive Adapter: Either skip validations or use adapter provided by projectPreprocessor to access project resources
1 parent 9e7ba75 commit a644520

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

lib/types/themeLibrary/ThemeLibraryFormatter.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -65,22 +65,22 @@ class ThemeLibraryFormatter extends AbstractUi5Formatter {
6565

6666
const absoluteSrcPath = path.join(project.path, project.resources.configuration.paths.src);
6767
const absoluteTestPath = path.join(project.path, project.resources.configuration.paths.test);
68-
return Promise.all([
69-
this.dirExists(absoluteSrcPath).then(function(bExists) {
70-
if (!bExists) {
71-
throw new Error(`Could not find source directory of project ${project.id}: ` +
72-
`${absoluteSrcPath}`);
73-
}
74-
}),
75-
this.dirExists(absoluteTestPath).then(function(bExists) {
76-
if (!bExists) {
77-
log.verbose(`Could not find (optional) test directory of project ${project.id}: ` +
78-
`${absoluteTestPath}`);
79-
// Current signal to following consumers that "test" is not available is null
80-
project.resources.configuration.paths.test = null;
81-
}
82-
})
83-
]);
68+
// return Promise.all([
69+
// this.dirExists(absoluteSrcPath).then(function(bExists) {
70+
// if (!bExists) {
71+
// throw new Error(`Could not find source directory of project ${project.id}: ` +
72+
// `${absoluteSrcPath}`);
73+
// }
74+
// }),
75+
// this.dirExists(absoluteTestPath).then(function(bExists) {
76+
// if (!bExists) {
77+
// log.verbose(`Could not find (optional) test directory of project ${project.id}: ` +
78+
// `${absoluteTestPath}`);
79+
// // Current signal to following consumers that "test" is not available is null
80+
// project.resources.configuration.paths.test = null;
81+
// }
82+
// })
83+
// ]);
8484
});
8585
}
8686
}

0 commit comments

Comments
 (0)