Re: the ScriptingMojo

From: Kartik Ohri <kartikohri13(at)gmail(dot)com>
To: Chapman Flack <chap(at)anastigmatix(dot)net>
Cc: pljava-dev(at)lists(dot)postgresql(dot)org
Subject: Re: the ScriptingMojo
Date: 2020-08-27 11:54:06
Message-ID: CAASLQ4N4QruSQE3y0tj926TvcXOwO8X6D4JoEEPjDO9250E=zA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

On Thu, Aug 27, 2020 at 3:48 AM Chapman Flack <chap(at)anastigmatix(dot)net> wrote:

> On 08/26/20 12:55, Kartik Ohri wrote:
> > Windows configuration. I am having some issues with the File.separator
> > being used in paths. Once I am able to resolve it, we should have all the
>
> Serves you right! :)
>
>
> On 08/23/20 13:27, Chapman Flack wrote:
> > - The Maven-interpolated ${...} properties are convenient for getting
> > stuff working, but will eventually have to go, as in f413312.
>
>
> Remember that when you write something like this in the Maven config:
>
> var source_path = java.nio.file.Paths.get("${basedir}", "src", "main",
> "c");
>
> Maven has no idea that this config string is JavaScript code, and Maven
> knows nothing about JavaScript syntax. It's just going to stick the value
> of ${basedir} into the middle of this long text value that happens to be
> JavaScript.
>
> And if that value contains \ characters, those have special meaning in JS
> string literals. Maven didn't know any better.
>
> All of those string interpolations have to go, and become, for example,
>
> var source_path = java.nio.file.Paths.get(project.basedir, "src", "main",
> "c");
>
> as was done in f413312.
>
> Regards,
> -Chap
>

Yeah, this was the issue all along and I realised it a bit late. I have
already replaced the maven interpolated properties now and pushed the
changes.

In response to

Browse pljava-dev by date

  From Date Subject
Next Message Kartik Ohri 2020-08-27 13:17:23 Re: the ScriptingMojo
Previous Message Kartik Ohri 2020-08-27 11:52:36 Re: the ScriptingMojo