You can write to a file with 'echo', but that's like filing your build.xml with a bunch of 'println' style statements... I suspect you want to keep your build specification clear of any details like the contents of the file you are generating.
As Everitt suggests, if you can make a template, then you can copy the template with <copy> and make replacements with <replace>. The values to use for replacement could come from a property file, so that the combination of a general template, a set of <replace>'s using value from a property file gives you the flexibility you need. Or, perhaps something fancier could be achieved using the XSLT capability. "Everitt, Andrew" wrote: > Jeremy, > > I'm not sure about a way to write a new file, however you can modify an > existing file using the <replace> task to replace tokens within a file. > > Cheers, > Andi > > -----Original Message----- > From: Anderson, Jeremy [mailto:[EMAIL PROTECTED] > Sent: 12 September 2002 19:32 > To: Ant Developers List > Subject: ANT generated deployment script > > I've looked through the documentation but found nothing. > > Does ANT have the ability to write a file? I'd like ANT to create a new > deployment script after packaging and then mail package w/script. > Packaging/mailing are easy, but howto write the deployment script (possibly > from a template?) > > Thanks, > > j.anderson > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
