cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Santana <csantan...@gmail.com>
Subject Anyone seeing problems with cordova cli commands running in parallel?
Date Tue, 27 Aug 2013 13:50:37 GMT
I created a grunt-cordovacli [1] plugin

I'm using grunt.util.spawn [2] it spawns a node child process to run a
cordova command

For example I'm running  in parallel when adding multiple platforms or
adding multiple plugins, where plugins and platforms is an array

cordova build ios and cordova build android

    Setting Current Working Directory (CWD) to myHybridAppFolder
    Running-> cordova platform add ios
    Running-> cordova platform add android

or adding all the  plugins

Setting Current Working Directory (CWD) to myHybridAppFolder
Running-> cordova plugin add
https://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration.git
Running-> cordova plugin add
https://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation.git
Running-> cordova plugin add
https://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information.git
Running-> cordova plugin add
https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git
Running-> cordova plugin add
https://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts.git
Running-> cordova plugin add
https://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture.git
Running-> cordova plugin add
https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git
Running-> cordova plugin add
https://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization.git
Running-> cordova plugin add
https://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation.git
Running-> cordova plugin add
https://git-wip-us.apache.org/repos/asf/cordova-plugin-file.git
Running-> cordova plugin add
https://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs.git

I get errors like
Error: [Error: Error fetching plugin: Error: failed to get the plugin via
git from URL
https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git, output:
fatal: destination path 'plugman-tmp1377610558753' already exists and is
not an empty directory.


I was scratching my head last night because commands will work some times
and will not other times

today I have a suspicion that it might be that I'm running the commands in
parallels, this helps speed the workflow but if it doesn't work all the
time is not worthy.


[1] https://github.com/csantanapr/grunt-cordovacli
[2] http://gruntjs.com/api/grunt.util#grunt.util.spawn



-- 
Carlos Santana
<csantana23@gmail.com>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message