You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by RyanThomas73 <gi...@git.apache.org> on 2016/10/11 23:52:53 UTC

[GitHub] cordova-lib issue #500: CB-11998 - cordova platform add error with cordova-c...

Github user RyanThomas73 commented on the issue:

    https://github.com/apache/cordova-lib/pull/500
  
    One suggestion - you could simplify the source directory mapping to:
    ```
        // Scan the files in each of the source directories.
        var sourceMaps = sourceDirs.map(function (sourceDir) {
                var absoluteSourceDir = path.join(rootDir, sourceDir);
                if (!fs.existsSync(absoluteSourceDir)) {
                    throw new Error("Source directory does not exist: " + absoluteSourceDir);
                }
                return mapDirectory(rootDir, sourceDir, include, exclude);
            });
    ```


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org