I think you need to look at the Copy task and FilterChains as a means of modifying files as you copy them:
http://nant.sourceforge.net/release/latest/help/filters/replacestring.html -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Flex Sent: Wednesday, April 19, 2006 3:45 PM To: nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] File operations (ups, sorry for double-sending to the admin list) Woot, this is nice, I can do half of the needed stuff with it :) Edit however looks like a problem? For example when creating the install, I have to update the contents of some files. Currently doing this by hand which is not fun too. I was hoping for find/replace commands in files, text only, no need of binary data, to update stuff like versions, languages, and such variable elements depending on the current build. Foster, Richard - PAL wrote: > Flex, > > Generating text based files is actually pretty easy. Take a look at the > echo task (specifically redirecting the output to a file). See > http://nant.sourceforge.net/release/latest/help/tasks/echo.html for > details. > > If the file in question is XML based, there are also the XMLPeek > (http://nant.sourceforge.net/release/latest/help/tasks/xmlpeek.html) and > XMLPoke > (http://nant.sourceforge.net/release/latest/help/tasks/xmlpoke.html) > tasks. > > Binary data is another thing completely, but my recommendation would be > to avoid that like the plague! > > Regards, > Richard > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Flex > Sent: Wednesday, April 19, 2006 10:02 > To: nant-users@lists.sourceforge.net > Subject: [NAnt-users] File operations > > Hi guys, > (please, don't beat me) > > While waiting for monad to become more useful and to drop the stupid bat > files I run (by complete accident) to NANT. Well... first glance - > amazed, second glance - in love and so on. However I was not able to > find something vital in the help and asking in case I have overlooked... > > file contents management. There are functions for folders, files, but > not the data inside, i.e. I can't get the file version, open some other > file and update it on some line, I can't generate files at runtime which > makes no fun. Please tell me I just missed them :) > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your job > easier Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > NAnt-users mailing list > NAnt-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nant-users > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642 > _______________________________________________ > NAnt-users mailing list > NAnt-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nant-users > > > ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users ============================================================================== Please access the attached hyperlink for an important electronic communications disclaimer: http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html ============================================================================== ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users