Skip to content

Commit 3e029cc

Browse files
Fatme HavaluovaFatme Havaluova
Fatme Havaluova
authored and
Fatme Havaluova
committed
Throw an error when add library command is executed with eclipse project
Fixes #838
1 parent 16647fc commit 3e029cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/services/android-project-service.ts

+4
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
217217

218218
public addLibrary(libraryPath: string): IFuture<void> {
219219
return (() => {
220+
if(this.$fs.exists(path.join(libraryPath, "project.properties")).wait()) {
221+
this.$errors.failWithoutHelp("Unable to add android library. You can use `library add` command only with path to folder containing one or more .jar files.");
222+
}
223+
220224
let name = path.basename(libraryPath);
221225
let targetLibPath = this.getLibraryPath(name);
222226

0 commit comments

Comments
 (0)