cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Braden Shepherdson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-3556) cordova-cli emulate deletes plugin's javascript
Date Mon, 03 Jun 2013 17:29:20 GMT

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

Braden Shepherdson commented on CB-3556:
----------------------------------------

You're getting burned here by an old version of the tools. Once 2.8.0 is released and new
versions of the tools hit npm, these issues should be fixed. Also you should consider using
<js-module> tags to include your Javascript code, instead of <asset> tags. It
eliminates the need to add <script> tags for plugins manually. That requires a newer
version of the tools, probably. See the docs for plugman's plugin.xml format.
                
> cordova-cli emulate deletes plugin's javascript
> -----------------------------------------------
>
>                 Key: CB-3556
>                 URL: https://issues.apache.org/jira/browse/CB-3556
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 2.7.0
>            Reporter: Don Coleman
>            Assignee: Filip Maj
>
> cordova-cli 2.7.4 is deleting the javascript files for plugins when I run cordova emulate
with Android.
> Anyone have ideas about how to track this down and fix it?
> It's pretty easy to duplicate
>     $ git clone https://github.com/don/FileOpener.git
>     $ cordova create foo
>     $ cd foo
>     $ cordova platform add android
>     $ cordova plugin add ../FileOpener
>     $ cordova build
>     $ ls platforms/android/assets/www/js/
>     fileopener.js	index.js
> fileopener.js exists
>     $ cordova emulate
>     $ ls platforms/android/assets/www/js/
>     index.js
> fileopener.js was deleted

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message