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

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

    I found the other answers useful, but not giving the flexibility I needed. Below is an example of writing echos to temp file that can be used as a header and footer, then using concatenation to wrap an xml document.

        
        
            
                
            ]]>
        
        
            
            ]]>
        
    
        
            
            
            
        
        
        
    

提交回复
热议问题