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 1k5Inr-00080O-4u for pljava-dev@arkaria.postgresql.org; Tue, 11 Aug 2020 01:10:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k5Inq-0006XT-4Q for pljava-dev@arkaria.postgresql.org; Tue, 11 Aug 2020 01:10:10 +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 1k5Inp-0006XM-Ki for pljava-dev@lists.postgresql.org; Tue, 11 Aug 2020 01:10:09 +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 1k5Inn-0000Fh-Bd for pljava-dev@lists.postgresql.org; Tue, 11 Aug 2020 01:10:08 +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=eX4ya+gMboI8zA6NWxZFCuGwNzW1lkPicufy+cpAdso=; b=INW54j5kJp1MCOKlgSzjG2b0z3 YPwjdy13ZcNR6egNb+rLeINbJklPy0b5+Eb/YydqOUcBla8OmR6aUmhzg3RFDgGdJ+T9OCFFPa9pp AjPmOJlzqCZGk8vvYpK+1ajWuHzbRPfNydOX3QDzxReBCU1ahpMtIAWcQ1MWzX8yxjOWhsvz7Agk6 +bCLhDUBm6+wcjrGvSMYcpV3lQrS3XY9Ki+owIWTWP3bgQRQvGEVepuOoaz6gdPKiR2y+i5ByMyWg vvfRc9tqeB1BUfhBMdhOUhVXaUBykMhqZxqMXt/5pYYkXlEA6ptIQQ4NqCGnva14xErDazZHyYP0L Tp22jujg==; Received: from [184.19.31.139] (port=59759) by bay.acenet.us with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1k5Inl-00C7vz-LL; Mon, 10 Aug 2020 21:10:06 -0400 Subject: Re: the ReportScriptingMojo To: Kartik Ohri References: <5F230337.3040406@anastigmatix.net> <5F232EBB.9030208@anastigmatix.net> <5F278CCE.1090006@anastigmatix.net> <5F2897AF.9040909@anastigmatix.net> <5F2A29E4.2000803@anastigmatix.net> <5F2EB313.8090706@anastigmatix.net> <5F2EC4F4.3080608@anastigmatix.net> Cc: pljava-dev@lists.postgresql.org From: Chapman Flack X-Enigmail-Draft-Status: N1110 Message-ID: <5F31EFEC.1080609@anastigmatix.net> Date: Mon, 10 Aug 2020 21:10:04 -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 08/10/20 16:55, Kartik Ohri wrote: > I have pushed the changes adding these two methods. Please take a look and > let me know if any changes are needed. Thanks! I added some comments on the github commitdiff. I also think we should not forget to eventually turn various catch ( ... e ) { e.printStackTrace(); } places into logged Maven errors. It would not be nice to have failures get only printed and ignored. I think the Maven log methods will accept a throwable, and will print the stacktrace if mvn was run with -e. Another option would be to wrap it in some unchecked exception, and catch and unwrap it at some caller that is declared to throw MojoExecutionException or MavenReportException, then wrap it in one of those. One thing I should have warned you about when you were git rebasing: the commit that's now f96fc90 contains, in its comment, a reference to the commit that used to be 1d9752b (but is now 037b518, because rebasing changes commit ids). It still looks like a working link because the old commit exists in your repository, but it might not get copied into clones. So if you could do a git rebase -i edb4379 and then (r)eword the comment for (Try to) link -api from -examples..., changing the reference 1d9752b to be 037b518, that would be fixed. I don't see any other commit id references in the subsequent commits. Regards, -Chap