Skip to content

Commit a4dac7c

Browse files
author
Mihail Slavchev
committed
generate metadata for stand-alone *.jar files
1 parent e45d89a commit a4dac7c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lib/services/android-project-service.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ class AndroidProjectService implements IPlatformProjectService {
170170
var projProp = path.join(projDir, "project.properties");
171171

172172
if (!this.$fs.exists(projProp).wait()) {
173-
this.$errors.fail("File %s does not exist", projProp);
173+
this.$logger.warn("File %s does not exist", projProp);
174+
return;
174175
}
175176

176177
var lines = fs.readFileSync(projProp, { encoding: "utf-8" }).split("\n");
@@ -237,11 +238,14 @@ class AndroidProjectService implements IPlatformProjectService {
237238

238239
this.parseProjectProrperies(libraryPath, targetPath);
239240

241+
shell.cp("-f", path.join(libraryPath, "*.jar"), targetPath);
242+
var projectLibsDir = path.join(platformData.projectRoot, "libs");
243+
this.$fs.ensureDirectoryExists(projectLibsDir).wait();
244+
shell.cp("-f", path.join(libraryPath, "*.jar"), projectLibsDir);
245+
240246
var targetLibPath = path.join(targetPath, path.basename(libraryPath));
241247

242248
this.updateProjectReferences(platformData.projectRoot, targetLibPath);
243-
244-
this.$errors.fail("Implement me!");
245249
return Future.fromResult();
246250
}
247251

0 commit comments

Comments
 (0)