CFUnited - code and presentation
As I mentioned during the session that I'll be releasing the code after the conference. It took me a while as some work related issues took precedence. Anyways without further delay, you can download the code from the following links
- Presentation
- ANT demo
- CFUnit demo
- Selenium demo
- CFPrototype Application with unit tests, selenium tests and the build files.
I appreciate the patience as several folks have emailed me to inquire about the code.
Eclipse - Configure ANT Home
One thing that I mentioned during my first presentation at CFUnited was to change the ANT home in eclipse preferences. Eclipse comes bundled with ANT however I like to keep ANT in one central location as
- All ANT external jars can be placed under ANT/lib folder. In this way it becomes available to all Eclipse projects
- It is easier to upgrade to a newer version of ANT if one becomes available
- If I've to switch machines, I can just copy the ANT folder to a new machine without much fuss
These are the steps to change the ANT home for Eclipse
- Download the latest ANT distribution from here and unzip it to a folder in your drive e.g. c:\ant
- Go to Windows -> Preferences
- Browse to the ANT section either by clicking ANT or using the filter box on the top.
- Under Runtime you'll see an entry for ANT Home. Click the button "Ant Home" and browse to the directory where you have unzipped ANT distribution
- Click "Apply"
Hope that helps
15 tips for better ANT build
I saw this on DZone this afternoon where Dan from UK is presenting 15 valuable tips for ANT. We use ANT quite extensively at work and I have been looking for ways to improve several ANT builds. Here are few of our use cases
- Unit testing of CFC and CFM file using CFUnit
- Acceptance testing for running Selenium test
- Testing/Production server deployment.
- various backup processes for databases, files etc....
Dan has also mentioned a free tool named yWorks ANT Explorer which seems quite interesting. It is available as an Eclipse plugin as well as a Stand alone version
