Using ant to edit/append data to a text file

前端 未结 2 1764
你的背包
你的背包 2021-01-02 16:20

I am trying to add a property to a .jad file in my ant build process.

Is there a task in ant to do this? All I need to do is add a line of text to the end of a text

相关标签:
2条回答
  • 2021-01-02 16:53

    I believe this will work. Testing it now.

    <concat append="true" destfile="app.jad">foo: bar</concat>
    
    0 讨论(0)
  • 2021-01-02 16:53

    Another alternative, using the ant echo task

    <echo file="app.jad" append="true">hello world
    </echo>
    
    0 讨论(0)
提交回复
热议问题