I have a task sshexec in an ant buildfile. This task shows the output of the command i wish to execute. My question is: how to not show the output?
here is my task:
<sshexec verbose="false" failonerror="true"
trust="yes" host="${app.deploy.server}"
username="${deploy.user}"
command="find /home/software/public_html/${app.name} -name *.jar* -exec md5sum {} +"
password="${deploy.password}"
output="jarsAtServer.txt" outputproperty="trash" />
Thanks in advance.
You can silence the output from sshexec task (or any other task) by using a custom logger:
Compile with:
The task to mute is specified with the property “mute.task”:
You can tidy it up by putting MuteTaskLogger into one of the Ant library directories. The logger and mute.task properties can be added to the ANT_ARGS environment variable.