jextract for operating system API
Jorn Vernee
jorn.vernee at oracle.com
Tue Sep 6 18:19:00 UTC 2022
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/cfbe3ccc/attachment.htm>
More information about the jextract-dev
mailing list