[ 
https://issues.apache.org/jira/browse/CB-10717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15172271#comment-15172271
 ] 

Jacob Weber commented on CB-10717:
----------------------------------

That causes an error on my system. Also, it's not ignoring the --release 
argument; just the --keystore and other key-related arguments. This seems to be 
due to cordova/lib/build.js; it looks like it's only reading the 
keystore-related arguments inside "if (buildConfig) {".

{code}
$ cordova/version 
5.1.1

$ cordova/build android -- --release --keystore ./release-key.keystore
ANDROID_HOME=/path/android-sdk-macosx
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home
TypeError: Arguments to path.resolve must be strings
    at Object.exports.resolve (path.js:313:15)
    at Object.exports.relative (path.js:370:20)
    at parseOpts (/myproject/android/cordova/lib/build.js:75:37)
    at Api.module.exports.run (/myproject/android/cordova/lib/build.js:150:16)
    at require.run.then.then.buildResults.apkPaths.map.buildType 
(/myproject/android/cordova/Api.js:342:43)
    at _fulfilled (/myproject/android/cordova/node_modules/q/q.js:834:54)
    at self.promiseDispatch.done 
(/myproject/android/cordova/node_modules/q/q.js:863:30)
    at Promise.promise.promiseDispatch 
(/myproject/android/cordova/node_modules/q/q.js:796:13)
    at /myproject/android/cordova/node_modules/q/q.js:604:44
    at runSingle (/myproject/android/cordova/node_modules/q/q.js:137:13)
{code}


> Command-line build options ignored without buildConfig
> ------------------------------------------------------
>
>                 Key: CB-10717
>                 URL: https://issues.apache.org/jira/browse/CB-10717
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 5.1.1
>            Reporter: Jacob Weber
>            Priority: Minor
>              Labels: triaged, wfc
>
> Using a non-CLI project, I tried to run the cordova/build script, passing it 
> the various keystore arguments described 
> [here|http://cordova.apache.org/docs/en/dev/guide/platforms/android/index.html#signing-an-app]
>  under "Using Flags".
> For example,
> {code}
> $ cd /myproject/android
> $ cordova/build android --release --keystore foo.keystore
> {code}
> But the arguments are ignored. It looks like the tool only sees them if I 
> pass --buildConfig and create a config file. But then the arguments are 
> unnecessary.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to