Skip to content

Commit

Permalink
Fixed relative file path setup in IosSimulator tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Quesar committed Mar 11, 2024
1 parent 2b8f98b commit d7bb9fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ public void doTaskAction() throws Exception {
if (simLogs.isEmpty()) {
getLogger().info("Simulator logs were not found");
} else {
File tmpLogDir = new File("build/gmp-temp/simulator-logs/");
File tmpLogDir = new File(getProject().getBuildDir(), "gmp-temp/simulator-logs/");
FileUtils.forceMkdir(tmpLogDir);
FileUtils.cleanDirectory(tmpLogDir);
for (File simLog : simLogs) {
FileUtils.copyFileToDirectory(simLog, tmpLogDir);
}
File logDir = new File("build/logs/");
File logDir = new File(getProject().getBuildDir(), "logs/");
FileUtils.forceMkdir(logDir);
File logZip = new File(logDir, "simulator-logs.zip");
ZipUtil.compressDirectory(tmpLogDir, false, logZip);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private File findIpa(Object classifier) throws IOException {
}

private File extractApp(File ipa) throws IOException {
File payloadDir = new File("build/gmp-temp/"+ipa.getName());
File payloadDir = new File(getProject().getBuildDir(), "gmp-temp/"+ipa.getName());
ZipUtil.extractAll(ipa, payloadDir);
return CommonUtil.findIosAppsInDirectory(payloadDir).get(0);
}
Expand Down

0 comments on commit d7bb9fe

Please sign in to comment.