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:[email protected]] > Gesendet: Montag, 30. September 2019 20:21 > An: [email protected] > 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: [email protected] For additional > commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
