I want to do something like the following
& lt; Target name = "complex-conditional" & gt; & Lt; If & gt; & Lt; Exec command = "Python-Python-script- Thats-return-true-or-flowers-string-to-out-o-flowers-string-to-fast-wiff-fashion -string-to-standout.py />> Then & gt; Echo Message = "I did a while" />
How & gt; & lt; / l> Does the ant conditional I evaluate the result of executing some scripts inside?
In this there is outputproperty
, error implant
and result The parameter
parameter allows you to specify the property name in which to store the command output / errors / result code.
You then have one (or more) in your conditional statement, Can use:
command = "dragon" - some-python-script-she-return-true-or-wrong -strings-to-stout.py "outputproperty = "Myout" resultproperty = "mycustom">> gt;> if & gt; & lt; equals arg1 = "$ {myresult}" arg2 = "1" /> Gt; then & gt; and lieutenant, echo message = "I did a while" /> & Lt; / Then & gt; & Lt; Rest & gt; & Lt; Echo message = "I did something else" /> & Lt; / Left & gt; & Lt; / If & gt;
No comments:
Post a Comment