On Thu, Sep 12, 2002 at 03:54:00PM -0700, didge wrote: > Use Texen. See the velocity project. I would subclass the TexenTask and > override the populateInitialContext method to put the current project into > the context, say with the key "ant". This will allow you to create a very > simple output file template, then populate with properties from your script. > You'll be able to access any of your ant project's properties from within > the template using "$ant.somePropertyName".
A fair approximation to that is: <xmlproperty file="project.xml" collapseattributes="true"/> <echoproperties prefix="project" destfile="tmp.properties"/> <filter filtersfile="tmp.properties"/> <copy file="script.sh" filtering="true" ... /> --Jeff > didge > > -----Original Message----- > From: Anderson, Jeremy [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 12, 2002 11:32 AM > 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]>