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

后端 未结 4 2264
抹茶落季
抹茶落季 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:37

    Another option would be to use a filterchain.

    For example, the following will append file input2.txt to input1.txt and write the result to output.txt. The line separators for the current operating system (from the java properties available in ant) are used in the output file. Before using this you would have to create output2.txt on the fly I guess.

    
        
            
            
        
    
    

提交回复
热议问题