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 1jxxQp-0007jl-J1 for pljava-dev@arkaria.postgresql.org; Tue, 21 Jul 2020 18:56:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jxxQm-0004PX-59 for pljava-dev@arkaria.postgresql.org; Tue, 21 Jul 2020 18:56:00 +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 1jxxQl-0004PQ-U4 for pljava-dev@lists.postgresql.org; Tue, 21 Jul 2020 18:55:59 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jxxQe-0007Pm-S9 for pljava-dev@lists.postgresql.org; Tue, 21 Jul 2020 18:55:58 +0000 Received: by mail-ej1-x629.google.com with SMTP id lx13so22715022ejb.4 for ; Tue, 21 Jul 2020 11:55:52 -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=hkS/2+EuW2mIT1zyCO9EfEQgesxzUlrkRwjS/1+/g58=; b=jL2Ux+2V91AArmsrdz16s8fYtjuVrnKG7EFaYxxBWwmV3+KWQ23207FXUsJuaa/bVM ADqeA3PKyEljf+VASs8XZwUwVVQz28r1BdeEY/+nTDRwieina4DlJHw2Arjpc5V9UurA Fp45tXm6NVSIS6a6JyTwZjwDta5rQHY+xusY+1QanAsV0H4H7P6LCoMvlwfaHlaC4s6R dtZWBErGvK/GKXR9ibhuNlzJwt15TDopnaOmN21ZZ7Ydht3Rn7rOBTbHpdLwf3fZZ9bH h7Y1N+72HvxDe6R3EklK0C0p6UNSrNSca6vSWNR7a0geWoT3MnFh2vXvjkW7JKBh1QSV bnUg== 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=hkS/2+EuW2mIT1zyCO9EfEQgesxzUlrkRwjS/1+/g58=; b=kNViBUoEWE1mmCA9jnc0yGiZxmFWtmzxUjQsaCtHvR1T4Do+4Whfu3p03p7FIOHzxC MqaOY+mW4CM1Auv41YUF8jQD/kO3iiDvPNu9klFWlsPj5Aw1BiBnjV6AYxmlqAqHCu10 CxQmHLU83rfZWJGrS1FXhDkaLwFXf/G3vLd8Y5z8em3KXmj1bRVg0I2aQBH+wE5ZOfwR EhSPjeW/iAVsQ3R1cfY2DqMRIaq1XBsG80g6tjPugYhW4+z/MCHxfKE3lLZRnT8TFpRR cMTlhgSlTtoSqXZ6RPJeUm+nF7iH+ve8Qcf963Uc89qbXpf5mf52p8cBwrOoVQ76CXVb Kk5A== X-Gm-Message-State: AOAM531qt5ej6DEFdB4RM2u7ZgvDduay2QvMxyplJccvlRAoZ8LfOwDk d8JbEgKpP0aVcSplBMfMt5JLd0ijny9iux54ty420jkIlas= X-Google-Smtp-Source: ABdhPJy7B4oLuiXwM7MVQkcAELgbo3S+1cKkOb6QtcDbM1HDEknY29t4c2pKgHsLbE+boV2HFgxcpHp+QnMWqTWo9b8= X-Received: by 2002:a17:906:2296:: with SMTP id p22mr25996157eja.510.1595357750937; Tue, 21 Jul 2020 11:55:50 -0700 (PDT) MIME-Version: 1.0 References: <5F0F2DA2.5090603@anastigmatix.net> <5F12FF49.6090906@anastigmatix.net> <5F12FF80.5020208@anastigmatix.net> <5F1338F8.6030506@anastigmatix.net> <5F135B84.8070302@anastigmatix.net> <5F14C34E.4020704@anastigmatix.net> <5F14E15A.4040202@anastigmatix.net> <5F1664C5.2070700@anastigmatix.net> <5F1735ED.6020707@anastigmatix.net> In-Reply-To: <5F1735ED.6020707@anastigmatix.net> From: Kartik Ohri Date: Wed, 22 Jul 2020 00:25:39 +0530 Message-ID: Subject: Re: PL/Java new build plugin To: Chapman Flack Cc: pljava-dev@lists.postgresql.org Content-Type: multipart/alternative; boundary="00000000000008cc7c05aaf82c0d" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --00000000000008cc7c05aaf82c0d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > Hmm. That does sound worrisome. And I don't, at present, know the answer > on instantiation; I would assume different executions are distinct > instances. > > I have just had one of those d=C3=A9j=C3=A0 vu moments of thinking "wait,= haven't > I wondered about this before?" and it seems I did, five years ago (which > I guess is long enough to forget). > > https://stackoverflow.com/a/32800814/4062350 > > Is it possible to declare the script parameter as a PlexusConfiguration? > Does that lead anywhere useful? > I had already come across your answer in my search and figured that you might have forgotten about it :). I have seen antrun's source. I initially wanted to have something like it but was unable to figure out how antrun does that. I left on the speculation that it is another one of ant's dark magic. JSR-330 seems interesting but I have not been able to find enough documentation or examples around it. Even maven plugins seem to be using Plexus configuration years after they announced the alternative. We could use a hack. Specify the execution id in the configuration block also in the pom and have maven give us the id to fetch the block but then it is equivalent to having a scriptLanguage item in the configuration block. More, actually since we need to specify the id twice in this case. I say we continue to work this path and tackle the issue when we face it. We could always revert to the scriptLanguage thing if need be. --00000000000008cc7c05aaf82c0d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hmm. That does sound worrisome. And I don't, at pres= ent, know the answer
on instantiation; I would assume different executions are distinct instance= s.

I have just had one of those d=C3=A9j=C3=A0 vu moments of thinking "wa= it, haven't
I wondered about this before?" and it seems I did, five years ago (whi= ch
I guess is long enough to forget).

https://stackoverflow.com/a/32800814/4062350

Is it possible to declare the script parameter as a PlexusConfiguration? Does that lead anywhere useful?
=C2=A0
I= had already come across your answer in my search and figured that you migh= t have forgotten about it :). I have seen antrun's source. I initially = wanted=C2=A0 to have something like it but was unable to figure out how ant= run=C2=A0does that. I left on the speculation that it is another one of ant= 's dark magic. JSR-330 seems interesting but I have not been able to fi= nd enough documentation or examples around it. Even maven plugins seem to b= e using Plexus configuration years after they announced the alternative.=C2= =A0

We could use a hack. Specify the execution id = in the configuration block also in the pom and have maven give us the id to= fetch the block but then it is equivalent to having a scriptLanguage item = in the configuration block. More, actually since we need to specify the id = twice in this case. I say we continue to work this path and tackle the issu= e when we face it. We could always revert to the scriptLanguage thing if ne= ed be.
--00000000000008cc7c05aaf82c0d--