Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AB140200BAC for ; Wed, 12 Oct 2016 01:53:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A9746160AE6; Tue, 11 Oct 2016 23:53:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F32D2160AF4 for ; Wed, 12 Oct 2016 01:53:22 +0200 (CEST) Received: (qmail 17487 invoked by uid 500); 11 Oct 2016 23:53:21 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 16965 invoked by uid 99); 11 Oct 2016 23:53:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2016 23:53:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A1FAE2C4C75 for ; Tue, 11 Oct 2016 23:53:20 +0000 (UTC) Date: Tue, 11 Oct 2016 23:53:20 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-11998) cordova platform add error with cordova-common@1.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 11 Oct 2016 23:53:23 -0000 [ https://issues.apache.org/jira/browse/CB-11998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15566996#comment-15566996 ] ASF GitHub Bot commented on CB-11998: ------------------------------------- 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); }); ``` > cordova platform add error with cordova-common@1.5.0 > ---------------------------------------------------- > > Key: CB-11998 > URL: https://issues.apache.org/jira/browse/CB-11998 > Project: Apache Cordova > Issue Type: Bug > Components: CordovaCommon > Environment: cordova-common@1.5.0 > Reporter: Shazron Abdullah > > This occurs when adding the cordova-ios platform, that has cordova-common@1.5.0 > {code} > Shazron-rMBP:u shaz$ cordova platform add ~/Apache/cordova-ios --verbose > Warning: using prerelease version 6.4.0-nightly.2016.10.11.4759c467 (cordova-lib@6.4.0-nightly.2016.10.11.4ca3b4ca) > No scripts found for hook "before_platform_add". > Warning: using prerelease platform ios@4.3.0-dev. > Use 'cordova platform add ios@latest' to add the latest published version instead. > Adding ios project... > PlatformApi successfully found for platform ios > Creating Cordova project for the iOS platform: > Path: platforms/ios > Package: com.u.name > Name: u > Copying iOS template project to /Users/shaz/Desktop/u/platforms/ios > iOS project created with cordova-ios@4.3.0-dev > Checking for any plugins added to the project that have not been installed in ios platform > No differences found between plugins added to project and installed in ios platform. Continuing... > Generating platform-specific config.xml from defaults for iOS at /Users/shaz/Desktop/u/platforms/ios/u/config.xml > Merging project's config.xml into platform-specific iOS config.xml > Merging and updating files from [www, platforms/ios/platform_www] to platforms/ios/www > Error: ENOENT: no such file or directory, stat '/Users/shaz/Desktop/u/Users/shaz/Desktop/u/www' > at Error (native) > at Object.fs.statSync (fs.js:987:18) > at mapDirectory (/Users/shaz/Desktop/u/platforms/ios/cordova/node_modules/cordova-common/src/FileUpdater.js:331:52) > at /Users/shaz/Desktop/u/platforms/ios/cordova/node_modules/cordova-common/src/FileUpdater.js:295:20 > at Array.map (native) > at Object.mergeAndUpdateDir (/Users/shaz/Desktop/u/platforms/ios/cordova/node_modules/cordova-common/src/FileUpdater.js:290:12) > at updateWww (/Users/shaz/Desktop/u/platforms/ios/cordova/lib/prepare.js:153:17) > at Api.module.exports.prepare (/Users/shaz/Desktop/u/platforms/ios/cordova/lib/prepare.js:48:19) > at Api.prepare (/Users/shaz/Desktop/u/platforms/ios/cordova/Api.js:188:45) > at /Users/shaz/.nvm/v6.4.0/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/prepare.js:105:32 > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org