cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Grebnov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-7441) Plugman. .jsproj files should be theated as xml if used with <config-file>
Date Mon, 01 Sep 2014 13:38:20 GMT

    [ 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)

Mime
View raw message