properties - How to over-write the property in Ant? -
is there a way to reassign the value to a new property
function? Or is there another work available for that purpose?
Depending on how you want to use modified property, for example, write the following Instead:
& lt; Target name = "foo" & gt; & Lt; Echo message = "$ {my_property}" /> & Lt; / Target & gt;
and with no other message, you can write:
; Macrodef name = "myecho" & gt; & Lt; Attribute name = "msg" /> & Lt; Sequential & gt; & Lt; Echo message = "@ {msg}" /> & Lt; / Sequential & gt; & Lt; / Macrodef> & Lt; Target name = "foo" & gt; & Lt; Myecho msg = "$ {my_property}" /> & Lt; Property name = "my_property2" value = "..." /> & Lt; Myecho msg = "$ {my_property2}" /> & Lt; / Target & gt;
Comments
Post a Comment