<div dir="ltr">Yes, that's it. It actually work but the echo off got me all confused.<div><br></div><div>This tool is really taking a toll on me. I've wasted so much time with it - mainly because it doesn't talk.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 6, 2022 at 8:19 PM Jorn Vernee <<a href="mailto:jorn.vernee@oracle.com">jorn.vernee@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">

  
  <div>
    <div>On 05/09/2022 16:03, Manuel
      Bleichenbacher wrote:<br>
    </div>
    <blockquote type="cite">Minor
      annoyances are:
      <div dir="ltr">
        <div class="gmail_quote">
          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
            <div>
              <blockquote type="cite">
                <div dir="ltr">
                  <div dir="ltr">
                    <div><br>
                    </div>
                    <div>- 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.</div>
                  </div>
                </div>
              </blockquote>
              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?<br>
            </div>
          </blockquote>
          <div><br>
          </div>
          <div>The problem is different. If I have a batch file like
            this:</div>
          <div><br>
          </div>
          <div>jextract header1.h</div>
          <div>jextract header2.h</div>
          <div><br>
          </div>
          <div>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.<br>
          </div>
        </div>
      </div>
    </blockquote>
    <p>If I use this in a batch file:<br>
    </p>
    <div>    call jextract --output out1 header1.h</div>
    <div>    call jextract --output out2 header2.h</div>
    <div><br>
    </div>
    <div>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.</div>
    <div><br>
    </div>
    <div>Note that using powershell also sidesteps the issue of having
      to use `call`. i.e. just this works:<br>
          <br>
      <div>    jextract --output out1 header1.h</div>
      <div>    jextract --output out2 header2.h</div>
      <div><br>
      </div>
      <div>Jorn<br>
      </div>
    </div>
  </div>

</blockquote></div>