jextract for operating system API

Manuel Bleichenbacher manuel.bleichenbacher at gmail.com
Tue Sep 6 20:28:47 UTC 2022


Yes, that's it. It actually work but the echo off got me all confused.

This tool is really taking a toll on me. I've wasted so much time with it -
mainly because it doesn't talk.


On Tue, Sep 6, 2022 at 8:19 PM Jorn Vernee <jorn.vernee at oracle.com> wrote:

> On 05/09/2022 16:03, Manuel Bleichenbacher wrote:
>
> Minor annoyances are:
>
>>
>> - jextract on Windows is a batch file that never returns. So it's not
>> possible to call jextract multiple times for a single batch file.
>>
>> I don't see that issue when I run it on my machine. You mean e.g.
>> `jextract --help` never returns to the command prompt?
>>
>
> The problem is different. If I have a batch file like this:
>
> jextract header1.h
> jextract header2.h
>
> Then the second command is never executed since jextract never returns to
> the calling batch file. If you have nested batch file, you would generally
> need to use "call". But that doesn't help since the command.exe process is
> replaced with the java process.
>
> If I use this in a batch file:
>     call jextract --output out1 header1.h
>     call jextract --output out2 header2.h
>
> I see both output directories being generated (though jextract.bat turns
> echo off, so I don't see the second command printed). I'm not sure why it
> doesn't work for you.
>
> Note that using powershell also sidesteps the issue of having to use
> `call`. i.e. just this works:
>
>     jextract --output out1 header1.h
>     jextract --output out2 header2.h
>
> Jorn
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jextract-dev/attachments/20220906/1420efea/attachment.htm>


More information about the jextract-dev mailing list