Skip to content
This repository has been archived by the owner on Nov 16, 2018. It is now read-only.
nzakas edited this page Feb 29, 2012 · 1 revision

Buildr is designed to work in conjunction with Ant. Before you can use Buildr, you must create a local copy by creating a clone of the source. In order to obtain the source code, you must first install Git on your system. Instructions for installing and setting up Git can be found at http://help.github.com/set-up-git-redirect.

Step 1: Clone the repository

If you simply want to create a local copy of the source to play with, you can clone the main repository using this command:

git clone git://github.com/nzakas/buildr.git

Make sure you're cloning into a place that is close to your project so that you can reference it easily.

Step 2: Reference in your build.xml file

Your Ant build.xml needs to reference Buildr in order to use the tasks. The file to import is buildr.xml, which is in the root directory of the Buildr source repository. Use the following code in your build.xml:

<import file="${buildr.dir}/buildr.xml" />

This assumes you have the Buildr directory stored in the property buildr.dir.

Step 3: Have fun

You're now ready to start using the various Tasks available in Buildr.

Clone this wiki locally