Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 534F4200B25 for ; Wed, 8 Jun 2016 19:17:55 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 52253160A2E; Wed, 8 Jun 2016 17:17:55 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9A1CD160A0E for ; Wed, 8 Jun 2016 19:17:54 +0200 (CEST) Received: (qmail 73230 invoked by uid 500); 8 Jun 2016 17:17:48 -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 73216 invoked by uid 99); 8 Jun 2016 17:17:48 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jun 2016 17:17:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 062E4180592 for ; Wed, 8 Jun 2016 17:17:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.448 X-Spam-Level: * X-Spam-Status: No, score=1.448 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Ig0FW2PoemmB for ; Wed, 8 Jun 2016 17:17:46 +0000 (UTC) Received: from mail-oi0-f44.google.com (mail-oi0-f44.google.com [209.85.218.44]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 4545E5F642 for ; Wed, 8 Jun 2016 17:17:45 +0000 (UTC) Received: by mail-oi0-f44.google.com with SMTP id s139so23432827oie.2 for ; Wed, 08 Jun 2016 10:17:45 -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; bh=E1e/XL5xpshPvcM6Vugl8QI1ilpwz8eKFtkpmLRyptg=; b=W+922YIoMH4ufABhElP1ds7NySPWUvsL5Kl/9zEXhbn2HrT3ddtazAw30dG/cNuqET mMk7Oa/XFWFj/KA9Rtq6cn9o8ui5CGceq45O/5ypIwaRn4AYEe3JT7HX6MK5qTkVHyVS XQVGBSv1JRAAEAinIsU8c7vOWaM2Tq6r/V1+i/7iGmcibncuJ7+8528XJudcWO7VZAzL vN/WzmZlsql1PlZkAj/6liS+UDN9qbbh/4XD1hmVrDtAQV7spb4pKVAu4Q2JQ0spGaAD /cVpjv4YoXtmv+rzJfUq0hdNHAgBuTAHwvyFa4q5/l4fjEcE0S3wNXvd66BWR5oFMXwk r3OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=E1e/XL5xpshPvcM6Vugl8QI1ilpwz8eKFtkpmLRyptg=; b=RlQbtUgKVW8EBdez1v/yQnyAsqsr6erRH2v73wK/JChsaZQAQFxd3OXUJZyb3pzOF4 n8fpfvwSols1O4h/BCwWNAFZYvrAIDfnxRDdNsG/HhKajiMIYLDGflW8ovYMjYqVCu2x U6aWxy0UsXn/5FeWj8vUwOoILSpUUE8v4eCNWVaHTmNSNXm6fR0IgL9/u24PpDk4K+JX 6B4tMPLzR05ktUa08B6woYkf7l8S91JsDahxydHKcCON0rxA9Rsg8Rp20aoaYhla2dmi XefzyZ6NVGzoL27l5tQ1GLLe+eZ3RES3pXfYWYR9zLoDeUntZvNlLs4KS9Uq7YWHE4zi flVg== X-Gm-Message-State: ALyK8tIniHcPXW10rBdtVSmi26jppS0tUsOglN1deEe0QYOsPxQbvngVDLqlBaioWn0//ed0dqPsL3mYSy5+Wg== MIME-Version: 1.0 X-Received: by 10.202.52.85 with SMTP id b82mr3076541oia.158.1465406263999; Wed, 08 Jun 2016 10:17:43 -0700 (PDT) Received: by 10.157.57.196 with HTTP; Wed, 8 Jun 2016 10:17:43 -0700 (PDT) Received: by 10.157.57.196 with HTTP; Wed, 8 Jun 2016 10:17:43 -0700 (PDT) In-Reply-To: References: Date: Wed, 8 Jun 2016 10:17:43 -0700 Message-ID: Subject: Re: process.env.PWD vs process.cwd() From: Steven Gill To: dev@cordova.apache.org Content-Type: multipart/alternative; boundary=001a113d433ed1497f0534c77b7e archived-at: Wed, 08 Jun 2016 17:17:55 -0000 --001a113d433ed1497f0534c77b7e Content-Type: text/plain; charset=UTF-8 Hey Toby, Thanks for bringing this up. I'll take a look at it On Jun 8, 2016 10:14 AM, "Tobias Bocanegra" wrote: > Hi, > > btw, this also affects all those developers that use a java based IDE to > invoke Cordova (Intellij, WebStorm, AppCode, Eclipse, Android Studio) > > Regards, Toby > > > On Tue, Jun 7, 2016 at 10:08 PM, Tobias Bocanegra > wrote: > > > Hi, > > > > I see a different behaviour in relative plugin resolution between 6.1.1 > > and 6.2. > > I'm invoking cordova via ant (java), which sets the current working > > directory of the cordova process correctly, but does not change the > env.PWD > > [0]. > > > > until 6.1.1 this was not a problem, but since 6.2 my relative plugin > paths > > don't resolve anymore. I tried to figure out where the change came from, > > but until now I was not successful. > > > > I would change the order of the assignment in [1] to: > > > > origCwd = process.cwd() || process.env.PWD; > > > > but since this didn't change between 6.1 and 6.2, I don't think this is > > the culprit. > > any advice? > > > > regards, toby > > > > for details see: https://issues.apache.org/jira/browse/CB-11387 > > > > [0] > > > https://docs.oracle.com/javase/7/docs/api/java/lang/Runtime.html#exec(java.lang.String[],%20java.lang.String[],%20java.io.File) > > [1] > > > https://github.com/apache/cordova-lib/blob/6.2.x/cordova-lib/src/cordova/util.js#L131 > > > --001a113d433ed1497f0534c77b7e--