my problem is, that the output from the ant task alwas has some [ssh-exec] infotext at the beginning. can i suppress / disable that?
my code so far:
I tripped over the same issue in gradle and from there I had to change the way to access the property: According to the official gradle doc 3.3
println ant.antProp
println ant.properties.antProp
println ant.properties['antProp']
is the correct way to go.
def ant = new AntBuilder()
ant.sshexec(host: host,
port: port,
trust: true,
username: username,
password: password,
command: 'ls',
outputproperty: 'result')
def result = ant.properties.'result'
Hope this helps people in the same situation. Cheers