in reply to Re: system call returns incorrect in windows
in thread system call returns incorrect in windows
My bad, I said above that ant was exe, but it is in fact, .bat, or .cmd. However the search order in windows is PATHEXT=.COM;.EXE;.BAT;.CMD...
I tried providing the full path to ant.bat and am seeing the same type of results. The cmd version apparently has bugs and won't run at all.
I checked out the ant.bat file and it appears to be setting the err variable in the file in the event of an error. In any event, when executing it directly from the command prompt it does leave %ERRORLEVEL% set to 1. Not sure if that is what system() consults or not?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: system call returns incorrect in windows (use antRun)
by Anonymous Monk on Apr 07, 2018 at 03:31 UTC | |
by Lotus1 (Vicar) on Apr 07, 2018 at 18:46 UTC | |
by Anonymous Monk on Apr 08, 2018 at 05:28 UTC |