How do I append some text at the end of a file using Ant?

后端 未结 4 2260
抹茶落季
抹茶落季 2021-02-18 14:11

In one of the configuration files for my project I need to append some text. I am looking for some options to do this using Ant.

I have found one option - to find someth

4条回答
  •  余生分开走
    2021-02-18 14:49

    Use the echo task:

    Hello World
    

    EDIT: If you have HTML (or other arbitrary XML) you should escape it with CDATA:

    
    Hello World
    ]]>
    
    

提交回复
热议问题