john blair wrote:
Hi
I want to execute the following command
strip /opt/dev/bin/* >/dev/null 2>&1 || true
I tried the error parameter of exec task but it still displayed the
following
[exec] /usr/bin/strip: /opt/dev/bin/gccbug: File format not
recognized
[exec] [ERROR] Result: 1
I dont want [ERROR] Result: 1 even if the command fails
Can someone help?
1. the * isnt going to be interpreted by the shell if you exec "strip",
as there is no shell involved,. Look at <apply>
2. you need to set outputproperty and errorproperty to catch error and
output streams
3, failonerror=true.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]