I don't know of any core ANT tasks (i.e. default) that will read and merge files. However, there are a number of external tools that you can use that may do what you're looking to achieve. Most of the ones I've seen simply work with XML though. If you're not merging XML, then you may need to write your own ANT task, which is fun in and of itself. :)
External ANT tasks: http://ant.apache.org/external.html Andy http://www.infoaccelerator.net On Feb 13, 2008, at 10:50 AM, jonese wrote: > i basically have a file which is generated by another program (File > A). I need to take the contents of this file and place it into a NEW > File B then move File B to File A. > > I have to do this because for some reason some of my ANT tasks cannot > "read" File A. But if i manually copy the contents from File A to File > B and then rename File B to File A it works.....So i'm trying to do > this using ANT. > > jonese > > On Feb 13, 2008 10:45 AM, Andrew Powell <[EMAIL PROTECTED]> wrote: >> Are you talking about merging files or replacing files? >> >> If you're replacing: >> >> <delete file="fullPathToFileB"/> >> <copy file="fullPathToFileA" toFile="fullPathToFileB"/> >> >> Andy >> >> >> >> On Feb 13, 2008, at 10:40 AM, jonese wrote: >> >>> Anyone here ever create an ant script which will take the >>> contents for >>> file A and put them into file b? i'm trying to find a workaround for >>> an issue i'm having and this is currently the only solution. >>> >>> thanks in advance >>> jonese >>> >>> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298881 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

