You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Sergey Grebnov (JIRA)" <ji...@apache.org> on 2014/09/01 15:38:20 UTC

[jira] [Commented] (CB-7441) Plugman. .jsproj files should be theated as xml if used with

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

Sergey Grebnov commented on CB-7441:
------------------------------------

This is due to the following logic inside `config-changes`; only limited set of file extensions are treated as xml, adding jsproj here fixes the problem

{code}
 if (ext == '.xml' || ext == '.appxmanifest') {
        self.type = 'xml';
        self.data = xml_helpers.parseElementtreeSync(filepath);
    } else if (ext == '.pbxproj') {
        self.type = 'pbxproj';
        var projectFile = platforms.ios.parseProjectFile(self.project_dir);
        self.data = projectFile.xcode;
        self.cordovaVersion = projectFile.cordovaVersion;
    } else {
        // plist file
        self.type = 'plist';
{code}

> Plugman. .jsproj files should be theated as xml if used with <config-file>
> --------------------------------------------------------------------------
>
>                 Key: CB-7441
>                 URL: https://issues.apache.org/jira/browse/CB-7441
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib, Plugman
>            Reporter: Sergey Grebnov
>            Assignee: Sergey Grebnov
>              Labels: cordova-lib, plugman, windows
>
> Create plugin with the following section
> {code}
> <platform name="windows">
>     <config-file target="CordovaApp.Phone.jsproj" parent="/*">
>         <ItemGroup>
>             <SDKReference Include="Microsoft.VCLibs, version=12.0" />
>         </ItemGroup>
>         <ItemGroup>
>             <SDKReference Include="SQLite.WinRT, Version=3.8.2" />
>         </ItemGroup>
>     </config-file>
> ...
> </platform>
> {code}
> Run 'cordova plugin add plugin_location'
> The following error is occurred:
> {code}
> Processing configuration changes for plugins.
> Failed to install 'com.msopentech.websql':Error: malformed document. First element should be <plist>
> ...
> {code}



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