You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ripple.apache.org by "Julian Horn (JIRA)" <ji...@apache.org> on 2015/07/01 15:20:04 UTC

[jira] [Commented] (RIPPLE-93) Cordova prepare logic is sensitive to the current working directory

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

Julian Horn commented on RIPPLE-93:
-----------------------------------

Can't you supply the project directory as a command line parameter?
I thought that was how it was supposed to work, e.g.
{code}ripple emulate --path path-to-my-project{code}

If you don't supply --path, it defaults to current directory.

> Cordova prepare logic is sensitive to the current working directory
> -------------------------------------------------------------------
>
>                 Key: RIPPLE-93
>                 URL: https://issues.apache.org/jira/browse/RIPPLE-93
>             Project: Apache Ripple
>          Issue Type: Bug
>            Reporter: Arzhan Kinzhalin
>            Assignee: Arzhan Kinzhalin
>
> When the ripple is started from a directory that is not the emulated project, {{cordoba prepare}} would always fail (rightfully so) because ripple attempts to run it on the current working directory and not on the project. This is inconvenient and unnecessary.
> An example of the command line which would fail to properly prepare the project:
> {noformat}
> <kai@prodigy(s000).709 ~>
> --> ~/src/ripple-virgin/bin/ripple emulate --path ~/src/sample
> INFO: Could not find cordova as a local module. Expecting to find it installed globally.
> INFO: Server instance running on: http://localhost:4400
> INFO: CORS XHR proxy service on: http://localhost:4400/ripple/xhr_proxy
> INFO: JSONP XHR proxy service on: http://localhost:4400/ripple/jsonp_xhr_proxy
> Cordova 3.0 Project detected...
> INFO: Set Device User Agent (String): "Mozilla/5.0 (webOS/2.0; U; en-US) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/1.0 Safari/525.27.1 Pre/2.0"
> refreshing project (platform: android) ...
> Failed to execute command: cordova prepare. Make sure you've installed cordova.
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)