Skip to content

Commit

Permalink
fix: gradle ignore properties (#1018)
Browse files Browse the repository at this point in the history
  • Loading branch information
breautek authored Jul 5, 2020
1 parent ba5781c commit ec944cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/templates/cordova/lib/builders/ProjectBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ class ProjectBuilder {
var wrapper = path.join(this.root, 'gradlew');
var args = this.getArgs(opts.buildType === 'debug' ? 'debug' : 'release', opts);

return execa(wrapper, args, { stdio: 'inherit' })
return execa(wrapper, args, { stdio: 'inherit', cwd: path.resolve(this.root) })
.catch(function (error) {
if (error.toString().indexOf('failed to find target with hash string') >= 0) {
return check_reqs.check_android_target(error).then(function () {
Expand All @@ -346,7 +346,7 @@ class ProjectBuilder {
clean (opts) {
const wrapper = path.join(this.root, 'gradlew');
const args = this.getArgs('clean', opts);
return execa(wrapper, args, { stdio: 'inherit' })
return execa(wrapper, args, { stdio: 'inherit', cwd: path.resolve(this.root) })
.then(() => {
fs.removeSync(path.join(this.root, 'out'));

Expand Down

0 comments on commit ec944cf

Please sign in to comment.