Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8056F187DB for ; Thu, 12 Nov 2015 02:04:16 +0000 (UTC) Received: (qmail 8091 invoked by uid 500); 12 Nov 2015 02:04:11 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 8036 invoked by uid 500); 12 Nov 2015 02:04:11 -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 7821 invoked by uid 99); 12 Nov 2015 02:04:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2015 02:04:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 0C2202C1F60 for ; Thu, 12 Nov 2015 02:04:11 +0000 (UTC) Date: Thu, 12 Nov 2015 02:04:11 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-9971) Cordova outputs "Picked up _JAVA_OPTIONS" in stderr MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-9971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15001494#comment-15001494 ] ASF GitHub Bot commented on CB-9971: ------------------------------------ Github user dblotsky commented on a diff in the pull request: https://github.com/apache/cordova-android/pull/240#discussion_r44614185 --- Diff: bin/templates/cordova/lib/builders/GradleBuilder.js --- @@ -211,3 +209,46 @@ module.exports = GradleBuilder; function isAutoGenerated(file) { return fs.existsSync(file) && fs.readFileSync(file, 'utf8').indexOf(MARKER) > 0; } + +/** + * A special superspawn-like implementation, required to workaround the issue --- End diff -- It looks like `superspawn` should be modified to take the same parameters as `child_process.spawn`. Refer [here](https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options) for Node 5.0.x, and [here](https://nodejs.org/docs/latest-v0.12.x/api/child_process.html#child_process_child_process_spawn_command_args_options) for Node 0.12.x. > Cordova outputs "Picked up _JAVA_OPTIONS" in stderr > --------------------------------------------------- > > Key: CB-9971 > URL: https://issues.apache.org/jira/browse/CB-9971 > Project: Apache Cordova > Issue Type: Bug > Components: Android > Affects Versions: 5.0.0 > Environment: Windows, Tools for Apache Cordova in Visual Studio > Cordova 5.4.0 > Reporter: Michael Braude > Assignee: Vladimir Kotikov > Priority: Critical > Labels: easyfix, windows, > Original Estimate: 2h > Remaining Estimate: 2h > > Starting with version 5.4.0, Cordova now outputs "Picked up _JAVA_OPTIONS: -Xmx512M" to stderr. This breaks clients such as Visual Studio because we interpret messages in stderr to be errors, and this is not an error. So the result is that we show deploy failures to the dev when there are no errors. > See this for customer impact: http://stackoverflow.com/questions/33603167/vs2015-build-with-cordova-cli5-4-0-shows-deployment-errors > We can work around this in Visual Studio by using special casing, but Cordova needs to output this in stdout like it did in previous versions -- 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