Return-Path: X-Original-To: apmail-brooklyn-dev-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1B9D018184 for ; Fri, 15 Jan 2016 23:04:58 +0000 (UTC) Received: (qmail 55696 invoked by uid 500); 15 Jan 2016 23:04:58 -0000 Delivered-To: apmail-brooklyn-dev-archive@brooklyn.apache.org Received: (qmail 55661 invoked by uid 500); 15 Jan 2016 23:04:58 -0000 Mailing-List: contact dev-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list dev@brooklyn.apache.org Received: (qmail 55650 invoked by uid 99); 15 Jan 2016 23:04:57 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jan 2016 23:04:57 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 5E627C0DFB for ; Fri, 15 Jan 2016 23:04:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.427 X-Spam-Level: X-Spam-Status: No, score=0.427 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.554, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Gr1_8lfEx05z for ; Fri, 15 Jan 2016 23:04:51 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id 5BBCE4293A for ; Fri, 15 Jan 2016 23:04:51 +0000 (UTC) Received: (qmail 55280 invoked by uid 99); 15 Jan 2016 23:04:51 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jan 2016 23:04:51 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id DAEFCE045B; Fri, 15 Jan 2016 23:04:50 +0000 (UTC) From: aledsage To: dev@brooklyn.incubator.apache.org Reply-To: dev@brooklyn.incubator.apache.org References: In-Reply-To: Subject: [GitHub] incubator-brooklyn pull request: Windows script files Content-Type: text/plain Message-Id: <20160115230450.DAEFCE045B@git1-us-west.apache.org> Date: Fri, 15 Jan 2016 23:04:50 +0000 (UTC) Github user aledsage commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/950#discussion_r49915992 --- Diff: brooklyn-server/software/winrm/src/main/java/org/apache/brooklyn/util/core/internal/winrm/WinRmTool.java --- @@ -66,8 +66,38 @@ "Size of file chunks (in bytes) to be used when copying a file to the remote server", 1024); + /** + * Executes a Native Windows command. + * It is creating a new Shell on the destination host each time it is being called. + * @param command + * @since 0.2 + */ + WinRmToolResponse executeCommand(String command); + + /** + * Executes a Power Shell command. + * It is creating a new Shell on the destination host each time it is being called. + * @param psCommand + * @since 0.2 + */ + WinRmToolResponse executePsCommand(String psCommand); + + /** + * Execute a list of Windows Native commands as one command. + * The method translates the list of commands to a single String command with a "\r\n" delimiter and a terminating one. + * @param commands + * @deprecated since 0.2; Use the {@link #executeCommand(String)} instead and transform your commands list explicitly + */ + @Deprecated WinRmToolResponse executeScript(List commands); --- End diff -- @bostko see @neykov 's comments in https://github.com/cloudsoft/winrm4j/pull/2, saying "we should keep the `(List)`...". --- 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. ---