Deploying Zend Framework With Apache ANT

March 3rd, 2010
 

I recently wrote a quick ANT script to deploy a personal Zend Framework project and thought I would share the code. If you are just getting started with Agile development, ANT builds/deployments are a great first step with immediate benefits. The following example is bare-bones, it does not run tests or do anything complicated but it should give you something that works and can be built upon.

For more ANT goodness check out my other posts: Deploying Drupal with ANT, CSS Cache Busting & Drupal, Using YUI Compressor with ANT.

Methodology

For my project I need ANT to do the following:

  • Checkout From Subversion HEAD Or A Specific Revision Of The Project
  • Remove Files That Should Not Go To Production (Documentation)
  • Configure Zend For The Correct Environment
  • Securely Transfer Code To Production Server

I think this is a very common use-case so… onto the code!
(more…)