I think the correct approach here would be to create a plugin that only provides SDMCommon-2.3.0.183.jar, and then have your other plugins depend on it.
On Thu, Jun 20, 2013 at 1:45 PM, Filip Maj <[email protected]> wrote: > 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 > appropriately. > > 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. > > [1] > https://github.com/apache/cordova-plugman/blob/master/src/platforms/common. > js > [2] > https://github.com/apache/cordova-plugman/blob/master/src/platforms/common. > js#L10 > [3] > https://github.com/apache/cordova-plugman/blob/master/src/platforms/common. > js#L17 > [4] > https://github.com/apache/cordova-plugman/blob/master/src/platforms/android > .js#L37 > [5] > https://github.com/apache/cordova-plugman/blob/master/src/platforms/ios.js# > L35 > > On 6/20/13 10:31 AM, "Wargo, John" <[email protected]> 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-2.3.0.183.jar" 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 > >Email: [email protected]<mailto:[email protected]> > >Twitter: @johnwargo > > > >
