cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-6822) Plugman usage compatible with Windows platforms
Date Fri, 30 May 2014 17:49:04 GMT

    [ https://issues.apache.org/jira/browse/CB-6822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14013999#comment-14013999
] 

ASF subversion and git services commented on CB-6822:
-----------------------------------------------------

Commit 9a8914fdf1bfe9c8b1f6c3cb9eaaa5abd496c257 in cordova-mobile-spec's branch refs/heads/master
from [~martin.c.glez.glez]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-mobile-spec.git;h=9a8914f ]

CB-6822 plugman compatible with windows

When createmobilespec module is used and the --plugman argument is
present, it will determine if the development platform is windows to add
node as part of the command.

process.argv[0] it will retrieve the node from the current process, and
it will cover the scenario where the nodejs installation it has a custom
path or it's not present in system PATH environmental variable.

If:
/path/to/nodejs/node createmobilespec.js [args]
process.argv[0] it will retrieve: /path/to/nodejs/node
to invoke plugman main.js file.

This closes #66


> Plugman usage compatible with Windows platforms
> -----------------------------------------------
>
>                 Key: CB-6822
>                 URL: https://issues.apache.org/jira/browse/CB-6822
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: mobile-spec
>    Affects Versions: 3.5.0
>         Environment: Windows 7 & 8
>            Reporter: Martin Gonzalez
>              Labels: createmobilespec, mobilespec
>             Fix For: 3.6.0
>
>
> When the --plugman arguments is used to create the mobilespec project using the createmobilespec
nodejs module, it fails the plugins installation under windows.
> Reason:
> At: https://github.com/apache/cordova-mobile-spec/blob/master/createmobilespec/createmobilespec.js#L180
> The plugman main js script is called, but for windows it only means open the js file
with an editor, and for Linux based os uses the #!/usr/bin/env node line at the top of the
file to invoke nodejs and execute the file.
> For the Windows platform it's required provide the node command.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message