How to write a variable in to file in ant?

后端 未结 2 1651
南方客
南方客 2021-02-01 15:37

i have a variable abc and had the value this is ant script. This abc variable will keep on changing.

Using ANT script, how can i write

2条回答
  •  名媛妹妹
    2021-02-01 16:30

    Use propertyfile task. An example taken from ant manual:

    
      
    
    

    This may be better than echo as it updates the properties file with a given value, while echo appends to or overwrites the whole file.

提交回复
热议问题