Skip to content

Commit 9ca77c1

Browse files
FatmeFatme
Fatme
authored and
Fatme
committed
Merge pull request #672 from NativeScript/fatme/fix-missing-warning-when-adding-library
Fix missing warning when adding library
2 parents ea84795 + 3919e82 commit 9ca77c1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/services/android-project-service.ts

+6
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,12 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
202202

203203
private parseProjectProperties(projDir: string, destDir: string): IFuture<void> { // projDir is libraryPath, targetPath is the path to lib folder
204204
return (() => {
205+
let projProp = path.join(projDir, "project.properties");
206+
if (!this.$fs.exists(projProp).wait()) {
207+
this.$logger.warn("Warning: File %s does not exist", projProp);
208+
return;
209+
}
210+
205211
let projectPropertiesManager = this.getProjectPropertiesManager(projDir);
206212
let references = projectPropertiesManager.getProjectReferences().wait();
207213
_.each(references, reference => {

0 commit comments

Comments
 (0)