Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k1FFn-0007UC-LN for pljava-dev@arkaria.postgresql.org; Thu, 30 Jul 2020 20:34:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k1FFk-0006bG-Pz for pljava-dev@arkaria.postgresql.org; Thu, 30 Jul 2020 20:34:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k1FFk-0006b9-AP for pljava-dev@lists.postgresql.org; Thu, 30 Jul 2020 20:34:12 +0000 Received: from anastigmatix.net ([68.171.219.55]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k1FFd-0002Vm-VV for pljava-dev@lists.postgresql.org; Thu, 30 Jul 2020 20:34:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=anastigmatix.net; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=VK9krBKHVMoQaKhvsAajwGLq0/0qL0uZO1ppg+0ww5Y=; b=iQjo9DKD320lMx68BA7VLCD2eb j+WHZdWITg0F9BdyY65lXHAZNdJa/EDJrrCg3tVB2S8Gg7ODSTWngxqbOfBGhhCsI26Aa049WJc91 T1ZQ1W3bH5Fq8P18F4H2OCBzLb5LMPhAx0YpUynVlTfA4BF646xnM7NzFKcgVuxNpHnVvP4OoXb6u WOkz3sHaFslPBx6xLB5d5epyH+WH95m1WV/+ew65AXQi5Y1j4US8tBTeV91ZulGsE2AVTWsiH8aGs gRGsmmjtgV2Df4Or3tyfP4Y9iQX7xs6PIeFvR8gSRiNSWWqAnEJxG4dhVs00mkZcSUBiweS1Oi2jm MNy1muiA==; Received: from [184.19.31.139] (port=43853) by bay.acenet.us with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1k1FFc-003svE-G2; Thu, 30 Jul 2020 16:34:04 -0400 Subject: Re: PL/Java new build plugin To: Kartik Ohri References: <5F19C36C.70905@anastigmatix.net> <5F1C6F06.2020809@anastigmatix.net> <5F1CE067.2060107@anastigmatix.net> <5F1F88E0.2050305@anastigmatix.net> <5F20E585.6010703@anastigmatix.net> <5F22DF79.2090701@anastigmatix.net> <5F230337.3040406@anastigmatix.net> Cc: pljava-dev@lists.postgresql.org From: Chapman Flack X-Enigmail-Draft-Status: N1110 Message-ID: <5F232EBB.9030208@anastigmatix.net> Date: Thu, 30 Jul 2020 16:34:03 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-95.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bay.acenet.us X-AntiAbuse: Original Domain - lists.postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - anastigmatix.net X-Get-Message-Sender-Via: bay.acenet.us: authenticated_id: chap@anastigmatix.net X-Authenticated-Sender: bay.acenet.us: chap@anastigmatix.net X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 07/30/20 16:13, Kartik Ohri wrote: > I saw you had used project.build.sourceEncoding which is the default value > of inputEncoding [1]. Only if this value is null, the getInputEncoding > method returns ReaderFactory.FILE_ENCODING [2]. But since javadoc is not > complaining in the current implementation, the null case does not > apply. So, this will be probably redundant. A similar argument for output > encoding, it uses a different value which can also be interpolated directly > in the pom. Should I still expose public methods calling these ? As you say, the importance is kind of minor ... but if the effort required is also minor, it is probably worthwhile, just because it allows a script snippet to be written in a way that will look 'right' on its face to any casual reader, who need not know as much of the implementation detail as you do. Might be simplest just to override them, loosening the access modifier to public and calling the super method. As 'this' is already available to the script, maybe nothing more is needed. Regards, -Chap