I have been trying to use ANT to open a file and write content into it. I used to exec to run notepad.exe or cmd.exe and output attribute to define a file. But after creating the file I want some custom content to be written into the file. How do I do that. I thought I could use inputstring attribute but I cannot use it, I have tried redirector element.
I just want my ANT script file to open a file and write something into it (say "hello!").