cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Weber (JIRA)" <>
Subject [jira] [Commented] (CB-10717) Command-line build options ignored without buildConfig
Date Tue, 01 Mar 2016 20:36:18 GMT


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 "--":

$ node -v

$ cordova/build android -- --release --keystore ./release-key.keystore
TypeError: Path must be a string. Received { DTRACE_NET_SERVER_CONNECTION: [Function],
  global: [Circular],
   process {
     title: 'node',
     version: 'v4.3.1',
      [ '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' ],
      { http_parser: '2.5.2',
        node: '4.3.1',
        v8: '',
        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',
      { name: 'node',
        lts: 'Argon',
        sourceUrl: '',
        headersUrl: ''
      [ '/usr/local/bin/node',
        './release-key.keystore' ],
     execArgv: [],
      { ... },
     pid: 52483,
      { 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],
      { newListener: [Function],
        removeListener: [Function],
        uncaughtException: [Function],
        SIGWINCH: [Object] },
     _rawDebug: [Function],
     domain: null,
     _maxListeners: undefined,
      { [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,
      Module {
        id: '.',
        exports: {},
        parent: null,
        filename: '/myproject/android/cordova/build',
        loaded: true,
        children: [Object],
        paths: [Object] } },
  GLOBAL: [Circular],
  root: [Circular],
   { [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 (/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)

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:
>             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|]
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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message