BuildDoctor

Build Doctor

Continuous Integration, Delivery and Devops Consulting

Contact Us

(+44) 207 183 0323
hello@build-doctor.com
@builddoctor

Get in touch!

Nant vs Ant: Functions

Posted on by Julian Simpson

I’ve been writing (and fixing other people’s) Ant build files for about 5 years now. In that time I never really touched Nant much. My assumption was that Nant was a faithful reproduction of Ant, but with .NET specific tasks rather than Java tasks. That was a hasty assumption. In fact, it’s wrong. This is the first of a few posts about the differences.

One of the first things that struck me was the lack of tasks in Nant. I was a bit taken aback. But that was before I discovered functions. Functions are nice. Functions means you don’t need so many tasks. For example, you can do throw in a function to get the parent directory of a file so rather than execute a task.

In summary: Nice. Really helpful and I wish someone would port them to Ant. More info at the Nant site: Link


About Julian Simpson

Founder and Editor of The Build Doctor. Drinks Flat Whites. View all posts by Julian Simpson →

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

The Build Doctor Ltd, Suite 17189, Lower Ground Floor, 145-157 St John Street, London, EC1V 4PW

© Build Doctor 2007-2012