Try the outputproperty or errorproperty of the exec task. Maybe this is related to you https://ubuntuforums.org/showthread.php?t=1464940
I don't know mate-terminal. But you can't use <java> itself? Jan > -----Ursprüngliche Nachricht----- > Von: Игорь Бобров [mailto:ne...@yandex.ru] > Gesendet: Montag, 30. September 2019 20:21 > An: user@ant.apache.org > Betreff: After the command is executed, the ant window opens with an > error of 255 > > My code is written in target: > <exec executable="mate-terminal"> > <arg value="-e" /> > <arg value="java -cp build/ Main" /> > </exec> > After I close the terminal in ant it says that: Result: 255 How to > remove this error? Mate-terminal command does not return code 255 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional > commands, e-mail: user-h...@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org