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 1k6Pil-0001Li-W0 for pljava-dev@arkaria.postgresql.org; Fri, 14 Aug 2020 02:45:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k6Pik-0006ak-4f for pljava-dev@arkaria.postgresql.org; Fri, 14 Aug 2020 02:45:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k6Pij-0006ad-U7 for pljava-dev@lists.postgresql.org; Fri, 14 Aug 2020 02:45:29 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k6PiO-0004ak-MI for pljava-dev@lists.postgresql.org; Fri, 14 Aug 2020 02:45:28 +0000 Received: by mail-ej1-x62a.google.com with SMTP id c16so8352106ejx.12 for ; Thu, 13 Aug 2020 19:45:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6/iaLSCJDTWP6cnoSujst1t8hh/mGl6BuyE0XlNeejs=; b=HKDI+rEAn/AtcVUBi84YxpM2EsC/LlyMP6i2yYo9k6s0Zirgi5ozXLuN7/pk5mxQwW CexpY8KvrFIu1u4oCRGtCWSRaEQHVCk0iauBGFGJd0zOoLVF8obp4R7R2rH1/vdgT/1G K2/XvJyU8QA4vIZ3T+AEpe3K99qspQ4ECOpGE/0EB4vHoTFV1yO9ekFAYUfzbBP72z2d suP2vD2K1ItLpBwDkepM1kVVn62h5X07S+xdvVmr1X2fqgZWz8z96vr6j0+OxT80/UNz baAFlO6OOvRpPy4Yh/LFy7TjWrKyr7R43M5CH5LUz4c9AWW6JQ2Z+xBktquAgSvl8SJS k7/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6/iaLSCJDTWP6cnoSujst1t8hh/mGl6BuyE0XlNeejs=; b=Sf2CxPZIXWhd74eti14kK26VICwv/QmsYcXhArGiS5wkPn0bCpO7BqzfZTWU3nYi4V LcJ3a06MvKCInpCVJBu0eUqBOosTQ2nATWnD51UxVKvRI/uZeX5pvxDmkt1jfsNILtQw O0HPedS+Tsf4hK9QEh+kFGBSKC6xb633XnjRFFW2E1dzlSegsq+WLrlFvSsgpa05udjl BRIefD6KFhSA66cNQI94T2nuu13zQhlDQQQd8BJCbz3hPI34Y26iwEc2Dxibf2Awr85L Cpds+QWRwniq1Cp81vaAHJn+BaOHVcKb2bhS4Dp/NN8Y3W8CxLZTLp4P+8faLWaAr9fd UXAQ== X-Gm-Message-State: AOAM5307JqIp373XUBZ153waR6GzK2sURgwK1umowX7A62miWUv1Jm8Z bbwAyUpMqhwA1hVGx0pWXnf5d6hTb1rZJPizMN4fZLOo X-Google-Smtp-Source: ABdhPJydStWtAuAYB1A/p0BBPCGlmQOQh2HO01b3/GaYtr00QmeM43E99BZ/iqCCG5sGgUR41utXPNJL4cURELDZTiQ= X-Received: by 2002:a17:906:2296:: with SMTP id p22mr440541eja.510.1597373107532; Thu, 13 Aug 2020 19:45:07 -0700 (PDT) MIME-Version: 1.0 References: <5F278CCE.1090006@anastigmatix.net> <5F2897AF.9040909@anastigmatix.net> <5F2A29E4.2000803@anastigmatix.net> <5F2EB313.8090706@anastigmatix.net> <5F2EE97B.1030108@anastigmatix.net> <5F30B425.4020402@anastigmatix.net> <5F331877.50407@anastigmatix.net> <5F3323A6.3050202@anastigmatix.net> <5F35B163.2080005@anastigmatix.net> In-Reply-To: <5F35B163.2080005@anastigmatix.net> From: Kartik Ohri Date: Fri, 14 Aug 2020 08:14:55 +0530 Message-ID: Subject: Re: PL/Java new build plugin To: Chapman Flack Cc: pljava-dev@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000a5f68105accd68cf" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000a5f68105accd68cf Content-Type: text/plain; charset="UTF-8" On Fri, Aug 14, 2020, 3:02 AM Chapman Flack wrote: > On 08/13/20 17:24, Kartik Ohri wrote: > > I have made the changes to the ProcessBuilder and am now trying to use it > > build pljava-so using it. I wanted to ask should the working directory > for > > the process builder be hard coded as the project's target directory or > left > > for the user to specify as an argument. > > Hmm, that's a good question. > > What if ... instead of script calling new ProcessBuilder(...) to obtain > an instance, we provide a method (with the same signature), that calls > the constructor and returns a ProcessBuilder with some common defaults > already configured? > > Then the script can just change any bits it wants different from the > default. > > Regards, > -Chap > Sounds good to me. Will do it this way. Regards, Kartik > --000000000000a5f68105accd68cf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Aug 14, 2020, 3:02 AM Chapman Flack <chap@anastigmatix.net> wrote:
On 08/13/20 17:24, Kartik Ohri wrote:
> I have made the changes to the ProcessBuilder and am now trying to use= it
> build pljava-so using it. I wanted to ask should the working directory= for
> the process builder be hard coded as the project's target director= y or left
> for the user to specify as an argument.

Hmm, that's a good question.

What if ... instead of script calling new ProcessBuilder(...) to obtain
an instance, we provide a method (with the same signature), that calls
the constructor and returns a ProcessBuilder with some common defaults
already configured?

Then the script can just change any bits it wants different from the
default.

Regards,
-Chap

Sound= s good to me. Will do it this way.
Regards,
Kartik
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">
--000000000000a5f68105accd68cf--