cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Maj <>
Subject Re: Multiple plugins with the same dependencies
Date Thu, 20 Jun 2013 17:45:57 GMT
The file collision checking is built in.

A -f / --force flag would need to be implemented to support this case.

There are a set of common file methods handling things like copying stuff
over, deleting files, that kind of stuff [1]. These helper methods all
have built-in checking that the source of a file exists [2], as well as a
target destination does _not_ exist [3]. It is [3] that would have to be
tweaked and hooked into command-line flags to enable this functionality.

Additionally, individual platforms handle particular files differently.
See for example how Android handles <source-file> elements [4], vs. how
iOS handles <source-file> elements [5]. We'd have to make sure that these
platform-specific handlers are also hooked into the command line flag

There is no issue currently filed for this but I can see this being a
useful option. That being said, I am not sure if/when I will be able to
tackle this problem, so pull requests/patches are welcome.


On 6/20/13 10:31 AM, "Wargo, John" <> wrote:

>We¹re trying to install two plugins that share some of the same
>dependencies and we¹re getting an
>error. Is there a way to turn off checking if a file already exists?  If
>not, do you have any suggestions
>on how to implement this?
>Error: "C:\temp\plug\test\libs\SDMCommon-" already exists!
>Looks like we need a -force or -f flag added to plugman to support this.
>John M. Wargo
>SAP | Charlotte, NC | USA
>Office: +1 704.321.0265 | Mobile: +1 704.249.7476
>Twitter: @johnwargo

View raw message