mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
fix: gradle ignore properties (#1018)
This commit is contained in:
parent
ba5781c3bf
commit
ec944cf068
@ -330,7 +330,7 @@ class ProjectBuilder {
|
|||||||
var wrapper = path.join(this.root, 'gradlew');
|
var wrapper = path.join(this.root, 'gradlew');
|
||||||
var args = this.getArgs(opts.buildType === 'debug' ? 'debug' : 'release', opts);
|
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) {
|
.catch(function (error) {
|
||||||
if (error.toString().indexOf('failed to find target with hash string') >= 0) {
|
if (error.toString().indexOf('failed to find target with hash string') >= 0) {
|
||||||
return check_reqs.check_android_target(error).then(function () {
|
return check_reqs.check_android_target(error).then(function () {
|
||||||
@ -346,7 +346,7 @@ class ProjectBuilder {
|
|||||||
clean (opts) {
|
clean (opts) {
|
||||||
const wrapper = path.join(this.root, 'gradlew');
|
const wrapper = path.join(this.root, 'gradlew');
|
||||||
const args = this.getArgs('clean', opts);
|
const args = this.getArgs('clean', opts);
|
||||||
return execa(wrapper, args, { stdio: 'inherit' })
|
return execa(wrapper, args, { stdio: 'inherit', cwd: path.resolve(this.root) })
|
||||||
.then(() => {
|
.then(() => {
|
||||||
fs.removeSync(path.join(this.root, 'out'));
|
fs.removeSync(path.join(this.root, 'out'));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user