cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vladimir-kotikov <>
Subject [GitHub] cordova-windows pull request #213: CB-12163 Make resource-file copy files ag...
Date Wed, 14 Dec 2016 08:54:05 GMT
Github user vladimir-kotikov commented on a diff in the pull request:
    --- Diff: template/cordova/lib/PluginHandler.js ---
    @@ -53,18 +53,37 @@ var handlers = {
             install:function(obj, plugin, project, options) {
    -            // do not copy, but reference the file in the plugin folder. This allows
    -            // have multiple source files map to the same target and select the appropriate
    -            // one based on the current build settings, e.g. architecture.
    -            // also, we don't check for existence. This allows to insert build variables
    -            // into the source file name, e.g.
    -            // <resource-file src="$(Platform)/My.dll" target="My.dll" />
    -            var relativeSrcPath = getPluginFilePath(plugin, obj.src, project.projectFolder);
    -            project.addResourceFileToProject(relativeSrcPath,, getTargetConditions(obj));
    +            var targetConditions = getTargetConditions(obj);
    +            if (targetConditions.reference) {
    --- End diff --
    I think that the object that `getTargetConditions` returns was originally meant to hold
details about target platform (Win8.1, WP8.1, Win10) and architecture to create a `condition`
attribute, so `reference` field  doesn't really fit here - you might just check `if (obj.reference)

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message