Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F33161091B for ; Tue, 27 Aug 2013 17:22:35 +0000 (UTC) Received: (qmail 35886 invoked by uid 500); 27 Aug 2013 17:22:35 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 35874 invoked by uid 500); 27 Aug 2013 17:22:35 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 35865 invoked by uid 99); 27 Aug 2013 17:22:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Aug 2013 17:22:34 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ignisvulpis@gmail.com designates 209.85.220.170 as permitted sender) Received: from [209.85.220.170] (HELO mail-vc0-f170.google.com) (209.85.220.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Aug 2013 17:22:23 +0000 Received: by mail-vc0-f170.google.com with SMTP id kw10so3390900vcb.29 for ; Tue, 27 Aug 2013 10:22:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ACjml+CeyBu5dUcGLn1p/GRGkuoLrf8ww9To1N1aNP8=; b=FNOtV89S3uAcCUfAMnLVuBIfz+veq2rszr1/m7La1mAa5R2+y2eaaQzCM3GGea7CBo MLdqGVLkc35qqAkgSoihRdE7VH22V5UD1FjjM2PTNK0EIFz/Bx4UVXSQoXZyXKEfYEjZ GlufDN6UqX2ZhUhIvy6UuQ9ZfQ+aaHWmBJVEp69E0g5BuPbYrrySzJ20PRckrFs8hmAa 9y+mYxn4a0o8QvEeFuV3wY9b55msQuQvU6KuEhDhgHbJAKkT9r6Mwhm9k/q7q/NJsTip yrb0Xi+r0UCLwb2Eeo/z8ghDvDrsFB7Dsez+hKkpTwpP6H1RGQP0pkJn7qjsBgNhkbm9 AbTg== MIME-Version: 1.0 X-Received: by 10.52.103.73 with SMTP id fu9mr1996087vdb.29.1377624123168; Tue, 27 Aug 2013 10:22:03 -0700 (PDT) Received: by 10.220.137.131 with HTTP; Tue, 27 Aug 2013 10:22:03 -0700 (PDT) Received: by 10.220.137.131 with HTTP; Tue, 27 Aug 2013 10:22:03 -0700 (PDT) In-Reply-To: References: Date: Tue, 27 Aug 2013 19:22:03 +0200 Message-ID: Subject: Re: Anyone seeing problems with cordova cli commands running in parallel? From: Axel Nennker To: dev@cordova.apache.org Content-Type: multipart/alternative; boundary=047d7ba9755c7ee21a04e4f11c4e X-Virus-Checked: Checked by ClamAV on apache.org --047d7ba9755c7ee21a04e4f11c4e Content-Type: text/plain; charset=ISO-8859-1 Maybe use this instead? https://github.com/bruce/node-temp -Axel Am 27.08.2013 16:06 schrieb "Filip Maj" : > Its probably due to this brittle line of code in plugman by yours truly: > > > https://github.com/apache/cordova-plugman/blob/master/src/util/plugins.js#L37 > > Probably should tack on a random number there instead of a date. Pull > requests welcome! :) > On 2013-08-27 6:51 AM, "Carlos Santana" wrote: > > > 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 > > > > > --047d7ba9755c7ee21a04e4f11c4e--