cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobias Bocanegra <tri...@apache.org>
Subject Re: process.env.PWD vs process.cwd()
Date Wed, 08 Jun 2016 17:14:30 GMT
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 <tripod@apache.org> 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
>

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