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 E8817200C60 for ; Mon, 24 Apr 2017 13:18:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E6FC5160BA5; Mon, 24 Apr 2017 11:18:24 +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 138AA160B99 for ; Mon, 24 Apr 2017 13:18:23 +0200 (CEST) Received: (qmail 49088 invoked by uid 500); 24 Apr 2017 11:18:23 -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 49076 invoked by uid 99); 24 Apr 2017 11:18:21 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Apr 2017 11:18:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 588C1180594 for ; Mon, 24 Apr 2017 11:18:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.121 X-Spam-Level: X-Spam-Status: No, score=-0.121 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=cloudsoftcorp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id x3WHF2slirEx for ; Mon, 24 Apr 2017 11:18:19 +0000 (UTC) Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id A9ACF5FE3F for ; Mon, 24 Apr 2017 11:18:18 +0000 (UTC) Received: by mail-wm0-f50.google.com with SMTP id r190so7509898wme.1 for ; Mon, 24 Apr 2017 04:18:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudsoftcorp.com; s=google; h=from:subject:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=QaOIY1q4DbbfJ6fG7ugmmx3yNrS+PvY1VPOFcvr66JE=; b=YMMUmICMse+v6G3JnjPcJpDrsbxxb+ULJuCpPknt3jTmhm3axtQRTnyCNzNtbuNq+G kkqgzgteuoYUxrCPWBUIEglhoRc4nN5aHFMnSO6ZW/w2mcpFrbu52syYtlIoh6m1WmcO MT2RhgpKqRvXi1gtduEWWDo/qFF8RLMQ7/hhE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=QaOIY1q4DbbfJ6fG7ugmmx3yNrS+PvY1VPOFcvr66JE=; b=KRLPXwKIoSVHC0Afb0Yc1+ZfWXcA/UMlP2VcDrfCiXmtoJfV3DbAZmtHFjRcQEri8B o18eOgvTN1BYX6eEuKlLKomqVNVWqkuB7jFSKLc8YMZHSn8mFu9J3UafExSCjnf7PPt5 S6qRI8RBOvXgbW7UaK/xAAxKujxS+BJmmUBwUXtt4xp+Xf8iKqZKTpHsAYAlk6Jo8FkX 3U/aImJHVfbx8uxSgxb3GLZZeid7aKKY3rPVnpMJOvKEX2MvhmWHUykUz3zZT98OMIXo JQsjTdKOguZCfBYzDgEVNvj4ig9eWDh/PeG/WPfxYQnbsO4/Uz5euKX8644J4B3HkxQg R9QQ== X-Gm-Message-State: AN3rC/45aNuvMpGJDZO0sU5mPfqjl00NcV5bOO3AJP6IFSzQoe9UoCrQ LzXYt1kbgBHMdceTiJhInjgm0A+h9+ETPrbH5u8FEt+InYsCdKkS3sYFkel4Ymdj/7iK9fCuYSz Fr54Y X-Received: by 10.28.156.140 with SMTP id f134mr8688053wme.40.1493032697925; Mon, 24 Apr 2017 04:18:17 -0700 (PDT) Received: from Alexs-MacBook-Pro-2.local (host86-187-175-36.range86-187.btcentralplus.com. [86.187.175.36]) by smtp.googlemail.com with ESMTPSA id 13sm12374004wml.25.2017.04.24.04.18.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Apr 2017 04:18:17 -0700 (PDT) From: Alex Heneveld X-Google-Original-From: Alex Heneveld Subject: Re: files.customize To: dev@brooklyn.apache.org References: Message-ID: Date: Mon, 24 Apr 2017 12:18:15 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Legal-Virus-Advice: Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect its systems or data. No responsibility is accepted by Cloudsoft Corporation Limited in this regard and the recipient should carry out such virus and other checks as it considers appropriate. X-Legal-Confidentiality: This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer. Internet e-mails are not necessarily secure. Cloudsoft Corporation Limited does not accept responsibility for changes made to this message after it was sent. X-Legal-Company-Info: Cloudsoft Corporation Limited. Registered in Scotland. Number: SC349230. Registered Office: 13 Dryden Place, Edinburgh, EH9 1RP. archived-at: Mon, 24 Apr 2017 11:18:25 -0000 +1 to copyResources being protected not private +1 to adding `templates.customize` and `files.customize` a la `{templates,files}.runtime` (but before `customize.command`) Graham if you're able to do either or both in a PR I'll see it's added as quickly as possible. If not we'll pick this up soon as you're right, it's a curious omission. Aled if we do need to cut another 0.11 RC and the PR lands in time, I'd say we backport this -- it seems pretty safe to me. Best Alex On 24/04/2017 11:55, Aled Sage wrote: > Hi Graham, > > If this is at the end of the customize phase, you could use > `templates.runtime`. > > However, I presume you want this at the start of `customize`. I agree > it makes sense to support that. > > I think I'd be fine with us making `copyResources` protected, for > power-users who are writing Java. > > We should also add config for `templates.customize` and > `files.customize` that will be uploaded at the start of the customize > phase. However, I don't think we'd get that into the Brooklyn 0.11.0 > release as we do a feature-freeze after the first RC is produced. > > Could you create an "improvement" in Apache Brooklyn jira please, to > track this? > > Aled > > > On 17/04/2017 13:46, Graham Ashby wrote: >> (and templates.customize) >> >> As part of what I'm doing, I want to be able to send a templated >> configuration file in the customization phase. >> I was all prepared to write the code in my software process code, but >> .AbstractSoftwareProcessDriver.copyResources() is private, not >> protected. >> >> What I've done is reuse copyPreInstallResources(), saving its templates >> and files, and restoring them after I'm done. >> >> So, what would be really nice is to have files.customize and >> templates.customize already taken care of. Or make copyResources() >> protected. >> >> Thanks >> Graham >> >> >