getting well formed output from ant - sshexec in groovy script

后端 未结 3 1876
忘掉有多难
忘掉有多难 2021-01-06 13:05

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:

         


        
3条回答
  •  爱一瞬间的悲伤
    2021-01-06 13:27

    the problem is that outputproperty is not working properly (it does not set the ant variable).

    I often use trycatch from antcontrib to test if error occurs instead of reading return value.

    Example :

    
    
          
    
    
          Service already stopped!
    
    
    

提交回复
热议问题