This is the first post of a series in which I will be discussing how I leverage ANT with my ColdFusion applications for various pieces of deployment. Tentatively, this series will consist of:
- Generating ColdDoc (javadoc-like CFC documentation)
- Automating MXUnit Tests
- Deployment (via SSH, FTP, Windows Network)
Note: All files mentioned here should be placed directly in your root project directory.
Step 1 – Create our basic build.xml file
First, we will simply stub out our build file. For now I simply stub one target, called version. We will also reference a build.properties file to hold all variables that pertain to the build (we’ll build it later).
<project name="CFAntDemo" default="version" basedir="."> <property file="build.properties" /> <target name="version"> </target> </project>