My blog has moved
Please update your bookmarks and feeds for my site.
I now have a Mango Blog at:
http://www.andyjarrett.com/blog
Feed URL: http://feeds.feedburner.com/andyjarrett
Please update your bookmarks and feeds for my site.
I now have a Mango Blog at:
http://www.andyjarrett.com/blog
Feed URL: http://feeds.feedburner.com/andyjarrett
Critter on a previous post asked "if you can pass in attributes to the build.xml file?" From the Terminal this is as easy as adding another argument "-D".
I'm gonna try and cover the two OS's here so be kind.
First things first, goto http://ant.apache.org/bindownload.cgi and download the appropriate archive (zip) file: apache-ant-[VERSION NUMBER HERE]-bin.zip
I know that I've done a post on copying files with Ant, but I really want to take this further and into more detail. To save my fingers a lot of the text below is taken from my first post as moving and copying directories/files is a similar command in principle.
I also want to mention that I am running all my Ant tasks via Eclipse and not the command line. If there is a demand to know how to install Ant and run it from the command line I'll do that post separately. At this point I'm assuming you've got Eclipse and you know you way around it enough? Before we do begin you will need to ensure that you can see the Console 'View', you can get to this by going to:
First off I wanna say that I'm running all my Ant task via Eclipse and not the command line. If there is a demand to know how to install Ant and run it from the command line I'll do that post separately.
So, what is Ant? Well to steal a quote from Mark Drew, think of Ant as .bat files on steroids. You use XML to describe a set of commands to run a whole range of tasks to do anything from SVN/CVS checkouts, unit tests, FTP, emails, sql, moving/copying folders/files generally just name it!
In this guide I want to cover creating a build.xml file and moving files/folders. I'm assuming you've got Eclipse and you know you way around it enough. Before we do begin you will need to ensure that you can see the Console View.
Just been looking around for tips on installing Ant on the MacBook Pro and came across this. Not only is it a good guide but it takes time to explain the unix commands you are using.
Thanks to Eclipse making Ant so simple to use I've got it doing a few tasks for me. Well I thought I'd show how simple it is to use. Below is a simple Ant build.xml that I use to copy the ModelGlueAppliactionTemplate files over to a new project. In a nutshell it copies a bunch of files and directories from one location into the location the build.xml was ran from.
I've added a new pod to my site which now reads the ColdFusion Google calendar so you can see up coming events.
I've managed to add a couple of events myself including some from the Online CF meetup group, also thanks to Mark Drew as well as he is keeping up the UKCFUG schedule.
If you are an CFUG organiser (or any CF related organiser) leave me a comment here and i'll add you as an administrator so you can add your events. You'll need a Gmail account!
To subscribe to the calendar use one of the following links:
They say Laziness is the mother of all invention, well it strikes again. I've created another Ant build file for use with Doug Hughes Reactor. The build file will download the lastest set of Reactor files the Doug's SVN server, which at the moment has just reached a beta candidate.
The code for build.xml is below.
For anyone who is using Ant script to get the CFE nightly builds will need to update the srcURL property.
I've been getting into ANT for the last couple days and while mucking about i've created a build.xml file for the CFE nightly build. Its nothing amazing, more of a modified version of Wayne Grahams recent Model Glue build.xml.
The code for build.xml is below, to run the file from Eclipse just put the file into any directory, update line 10 with your CFEclipse folder location, right-click and then select Run As -- Ant Build.