Click to search Andy Jarrett.co.uk RSS feed

Loading Twitter

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

Comments Comments (0) | Print Print | Send Send | 1261 Views

Ant: Passing attributes to Build.xml

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".

[More]

Comments Comments (3) | Print Print | Send Send | 5632 Views

Installing ANT on Windows and or Mac OS X

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

[More]

Comments Comments (15) | Print Print | Send Send | 9284 Views

Ant: Copying files and directories

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:

[More]

Comments Comments (4) | Print Print | Send Send | 21443 Views

Ant: Moving files and directories

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.

[More]

Comments Comments (1) | Print Print | Send Send | 9264 Views

Installing Ant on Mac OS X

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.

http://www.asceticmonk.com/blog/?p=388

Comments Comments (1) | Print Print | Send Send | 13074 Views

Ant basics: Copying directories

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.

view plain print about
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3*
4* Name: is anything you want it to be, for this example its build-mg
5* default: is the first target (method) to run
6* basedir: is the base directory, this can be any local location
7*
8-->

9
10<project name="build-mg" default="deploy" basedir=".">
11
12    
13    <!--
14    *
15    * Description: Describes what the build file does
16    *
17    -->

18    <description>
19 Builds a new ModelGlue project
20 </description>
21
22    
23    <!--
24    *
25    * The property tag is just setting a variable.
26    * name: variable name. You can reference this via ${xxxxx}
27    * value: variable value
28    *
29    -->
    
30 <property name="mgfolder" value="/Path2ModelGlueDirectory/ModelGlue/modelglueapplicationtemplate" />
31
32    
33    <!--
34    *
35    * Target: In effect this is your method
36    * The next set of tags are self explanitory.
37    *    
38    -->

39    <target name="deploy">
40     <copy todir="${basedir}">
41     <fileset dir="${mgfolder}"/>
42     </copy>            
43    </target>
44
45    
46        <!--
47        *
48        * Thats it
49        *
50        -->

51</project>

Comments Comments (0) | Print Print | Send Send | 6025 Views

ColdFusion Meeting Calendar Pod

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:

[XML]
[iCal]

Comments Comments (0) | Print Print | Send Send | 2889 Views

Reactor Ant Build

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.

[More]

Comments Comments (0) | Print Print | Send Send | 2965 Views

Cfeclipse ANT build update

For anyone who is using Ant script to get the CFE nightly builds will need to update the srcURL property.

[More]

Comments Comments (0) | Print Print | Send Send | 4503 Views

CFeclipse ANT nightly build

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.

view plain print about
1<?xml version="1.0" encoding="UTF-8"?>
2<project name="build-nightly-cfe" default="setup" basedir=".">
3 <description>
4 Download the CFE nightly build and extracts to your pluggin folder
5    </description>
6    
7    <!-- =================================
8    This includes our build.properties file
9    ================================== -->

10    <property name="cfePluginFolder" value="d:/program files/eclipse/" />
11 <property name="srcURL" value="http://www.robrohan.com/client/includes/pods/cfeclipse_nightly.zip" />
12    
13 <!-- =================================
14 target: setup
15 ================================= -->

16 <target name="setup" depends="init,downloadZip,unzip,cleanDirs"
17 description="-->Sets up your CFeclipse nightly build">

18 <tstamp/>
19 <echo message="Build fininshed at ${DSTAMP}" />
20 </target>
21
22 <!-- - - - - - - - - - - - - - - - - -
23 target: init
24 - - - - - - - - - - - - - - - - - -->

25 <target name="init" description="Build directory structure">
26 <mkdir dir="tmp"/>
27 </target>
28
29
30 <!-- - - - - - - - - - - - - - - - - -
31 target: cleanDirs
32 - - - - - - - - - - - - - - - - - -->

33 <target name="cleanDirs" description="clean up">
34     <delete dir="${basedir}/tmp" />
35 </target>
36
37 <!-- - - - - - - - - - - - - - - - - -
38 target: unzip
39 - - - - - - - - - - - - - - - - - -->

40 <target name="unzip" description="Unzip the file">
41 <unzip src="${basedir}/tmp/cfeclipse_nightly.zip" dest="${cfePluginFolder}" />
42 </target>
43
44 <!-- - - - - - - - - - - - - - - - - -
45 target: downloadZip
46 - - - - - - - - - - - - - - - - - -->

47 <target name="downloadZip" depends="init" description="Download the
48 zip file for ModelGlue"
>

49 <get src="${srcURL}" dest="${basedir}/tmp/cfeclipse_nightly.zip"
50 verbose="true" usetimestamp="true" />

51 </target>
52</project>

Comments Comments (0) | Print Print | Send Send | 3948 Views

BlogCFC by Raymond Camden + Twitter @AndyJ + ColdFusion jobs + Contact Me + Snippets/Downloads + RSS .