Ant Rocks!

Just started messing with Ant.

Taken just over an hour to write a couple of scripts to:

  • Deploy an application to a deploymentfolder, and update all the fusebox.xml.cfm files to production mode
  • Deploy application to a staging folder, and alter all the extends attributes within the CFC's to point to the staging CFCs as opposed to the live ones...

Its a bit messy, and not that flexible how I've done it ATM - need to learn how to use Ant properly now ;)

The fact its built in to Eclipse, is a definite bonus :)

Comments
Jim Priest's Gravatar Ant does rock! :)

FYI - I have a bunch of Ant resources on my blog: http://www.thecrumb.com/wiki/Ant
# Posted By Jim Priest | 10/07/07 18:35
Brian Kotek's Gravatar Dan, I'm curious as to why you'd do the second bullet item. To me, the whole point of testing on the staging server is to duplicate as closely as possible the live production environment. Having your CFCs extend different components on stage vs. "live" ones seems to defeat the purpose of having a staging server in the first place.
# Posted By Brian Kotek | 10/07/07 18:39
Sam Farmer's Gravatar Built in to CF as well.

Google CFANT for more on this undocumented tag.
# Posted By Sam Farmer | 10/07/07 18:43
Daniel Lancelot's Gravatar Hi Brian,

The reason is, for this app we do not have a separate staging server - so the staging is a live test on the same server as the live app - but against a different copy of the code / db.

I know that it would be better to have a separate staging server - but in the real world this cannot always be...

The staging site is used after all internal testing has completed sucessfully, for testing by the client, and for testing of integration with external services (e.g. paypal staging etc.
# Posted By Daniel Lancelot | 10/07/07 19:37
BlogCFC was created by Raymond Camden. This blog is running version 5.5.1, hosted by TalkWebSolutions.