[
https://issues.apache.org/jira/browse/CB-10717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15174371#comment-15174371
]
Jacob Weber commented on CB-10717:
----------------------------------
I had 0.10.41. I tried upgrading to 4.3.1, but I still get a similar error when
I add "--":
{code}
$ node -v
v4.3.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: Path must be a string. Received { DTRACE_NET_SERVER_CONNECTION:
[Function],
DTRACE_NET_STREAM_END: [Function],
DTRACE_HTTP_SERVER_REQUEST: [Function],
DTRACE_HTTP_SERVER_RESPONSE: [Function],
DTRACE_HTTP_CLIENT_REQUEST: [Function],
DTRACE_HTTP_CLIENT_RESPONSE: [Function],
global: [Circular],
process:
process {
title: 'node',
version: 'v4.3.1',
moduleLoadList:
[ 'Binding contextify',
'Binding natives',
'NativeModule events',
'NativeModule buffer',
'Binding buffer',
'NativeModule internal/util',
'Binding util',
'NativeModule timers',
'Binding timer_wrap',
'NativeModule _linklist',
'NativeModule assert',
'NativeModule util',
'Binding uv',
'NativeModule path',
'NativeModule module',
'NativeModule internal/module',
'NativeModule vm',
'NativeModule fs',
'Binding fs',
'NativeModule constants',
'Binding constants',
'NativeModule stream',
'NativeModule _stream_readable',
'NativeModule _stream_writable',
'NativeModule _stream_duplex',
'NativeModule _stream_transform',
'NativeModule _stream_passthrough',
'Binding fs_event_wrap',
'NativeModule os',
'Binding os',
'NativeModule child_process',
'Binding spawn_sync',
'Binding pipe_wrap',
'NativeModule internal/child_process',
'NativeModule string_decoder',
'NativeModule net',
'Binding cares_wrap',
'Binding tty_wrap',
'Binding tcp_wrap',
'Binding stream_wrap',
'NativeModule dgram',
'Binding udp_wrap',
'Binding process_wrap',
'NativeModule internal/socket_list',
'NativeModule url',
'NativeModule punycode',
'NativeModule querystring',
'NativeModule console',
'NativeModule tty',
'Binding signal_wrap' ],
versions:
{ http_parser: '2.5.2',
node: '4.3.1',
v8: '4.5.103.35',
uv: '1.8.0',
zlib: '1.2.8',
ares: '1.10.1-DEV',
icu: '56.1',
modules: '46',
openssl: '1.0.2f' },
arch: 'x64',
platform: 'darwin',
release:
{ name: 'node',
lts: 'Argon',
sourceUrl:
'https://nodejs.org/download/release/v4.3.1/node-v4.3.1.tar.gz',
headersUrl:
'https://nodejs.org/download/release/v4.3.1/node-v4.3.1-headers.tar.gz' },
argv:
[ '/usr/local/bin/node',
'/myproject/android/cordova/build',
'android',
'--',
'--release',
'--keystore',
'./release-key.keystore' ],
execArgv: [],
env:
{ ... },
pid: 52483,
features:
{ debug: false,
uv: true,
ipv6: true,
tls_npn: true,
tls_sni: true,
tls_ocsp: true,
tls: true },
_needImmediateCallback: false,
execPath: '/usr/local/bin/node',
debugPort: 5858,
_startProfilerIdleNotifier: [Function: _startProfilerIdleNotifier],
_stopProfilerIdleNotifier: [Function: _stopProfilerIdleNotifier],
_getActiveRequests: [Function: _getActiveRequests],
_getActiveHandles: [Function: _getActiveHandles],
reallyExit: [Function: reallyExit],
abort: [Function: abort],
chdir: [Function: chdir],
cwd: [Function: cwd],
umask: [Function: umask],
getuid: [Function: getuid],
geteuid: [Function: geteuid],
setuid: [Function: setuid],
seteuid: [Function: seteuid],
setgid: [Function: setgid],
setegid: [Function: setegid],
getgid: [Function: getgid],
getegid: [Function: getegid],
getgroups: [Function: getgroups],
setgroups: [Function: setgroups],
initgroups: [Function: initgroups],
_kill: [Function: _kill],
_debugProcess: [Function: _debugProcess],
_debugPause: [Function: _debugPause],
_debugEnd: [Function: _debugEnd],
hrtime: [Function: hrtime],
dlopen: [Function: dlopen],
uptime: [Function: uptime],
memoryUsage: [Function: memoryUsage],
binding: [Function: binding],
_linkedBinding: [Function: _linkedBinding],
_setupDomainUse: [Function: _setupDomainUse],
_events:
{ newListener: [Function],
removeListener: [Function],
uncaughtException: [Function],
SIGWINCH: [Object] },
_rawDebug: [Function],
domain: null,
_maxListeners: undefined,
EventEmitter:
{ [Function: EventEmitter]
EventEmitter: [Circular],
usingDomains: false,
defaultMaxListeners: 10,
init: [Function],
listenerCount: [Function] },
_fatalException: [Function],
_exiting: false,
assert: [Function],
config: { target_defaults: [Object], variables: [Object] },
nextTick: [Function: nextTick],
_tickCallback: [Function: _tickCallback],
_tickDomainCallback: [Function: _tickDomainCallback],
stdout: [Getter],
stderr: [Getter],
stdin: [Getter],
openStdin: [Function],
exit: [Function],
kill: [Function],
_eventsCount: NaN,
mainModule:
Module {
id: '.',
exports: {},
parent: null,
filename: '/myproject/android/cordova/build',
loaded: true,
children: [Object],
paths: [Object] } },
GLOBAL: [Circular],
root: [Circular],
Buffer:
{ [Function: Buffer]
poolSize: 8192,
isBuffer: [Function: isBuffer],
compare: [Function: compare],
isEncoding: [Function],
concat: [Function],
byteLength: [Function: byteLength] },
clearImmediate: [Function],
clearInterval: [Function],
clearTimeout: [Function],
setImmediate: [Function],
setInterval: [Function],
setTimeout: [Function],
console: [Getter],
i: 2 }
at assertPath (path.js:8:11)
at Object.posix.relative (path.js:495:3)
at parseOpts (/myproject/android/cordova/lib/build.js:75:37)
at Api.module.exports.run (/myproject/android/cordova/lib/build.js:150:16)
at /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}
Anyway, I'm pretty sure that's a separate issue from what I'm reporting.
> 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
> Assignee: Richard B Knoll
> 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]