Re: SOT: Ant Script help
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:298878 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: SOT: Ant Script help
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:298879 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
SOT: Ant Script help
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:298877 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: SOT: Ant Script help
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
Re: SOT: Ant Script help
Got it... FYI for anyone else wanting to do this. touch file=DB/MS SQL ${db.server.version}/boomsocket_MSSQL_${db.server.version}_temp.sql/ loadfile srcFile=DB/MS SQL ${db.server.version}/boomsocket_MSSQL_${db.server.version}.sql property=sql.text / concat encoding=UTF-8 destfile=DB/MS SQL ${db.server.version}/boomsocket_MSSQL_${db.server.version}_temp.sql![CDATA[${sql.text}]]/concat delete file=DB/MS SQL ${db.server.version}/boomsocket_MSSQL_${db.server.version}.sql / move file=DB/MS SQL ${db.server.version}/boomsocket_MSSQL_${db.server.version}_temp.sql tofile=DB/MS SQL ${db.server.version}/boomsocket_MSSQL_${db.server.version}.sql / jonese On Feb 13, 2008 11:01 AM, Andrew Powell [EMAIL PROTECTED] wrote: 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:298901 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4