Essential nAnt Utilities from Pixolüt

28 11 2007

Download the nAnt Utilities from here

This is a set of nAnt includes which we use in our build pipeline which I thought may be helpful to other developers using .Net and nAnt… Download them and give them a shot…

Whats included:

build.include handles .Net compilation of projects of any size and also provides build output and error management. This also allows for multiple .Net platforms to be targetted from a single nAnt script, which is something nAnt does not do natively.

ftp.include handles automated FTP of files to a server from within nAnt

prenis.include processes a Nullsoft Scriptable Install System (NSI) file using the PreNIS pre-processor.

svn.include will do most automated gets and checkouts including automated version labels on tags using SubVersion. This is a very useful incude since the current Subversion support in nAnt is rather poor.

How to use them:

These properties are used for all scripts:
<property name="include.path" value=".\InstallScripts\targets" />
<property name=”nant.contrib” value=”c:\nant\contrib\bin\nant.contrib.tasks.dll” />

These properties are used for the build.include
<property name="solution.config" value="debug" />
<property name=”compiler.target2003″ value=”C:\Program Files (x86)\Microsoft Visual Studio .NET 2003\Common7\IDE\devenv.exe” />
<property name=”compiler.target2005″ value=”C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE\devenv.exe” />

These properties are set for ftp.include which also needs the ftp_mostrecent.bat file as well as the other parameters defined in the actual .include file for logging in.
<property name="ftp.executable" value="${include.path}\ftp_mostrecent.bat" />

These properties are set for prenis.include
<property name="prenis.executable" value="${include.path}\prenis.exe" />

These properties are set for svn.include and also you will require a command line version of subversion and also the GetAssemblyVersion.exe file which is included in the utilities pack.
<property name="svn.executable" value="C:\Program Files (x86)\CollabNet Subversion\svn.exe" />
<property name=”svn.assemblyparser” value=”${include.path}\GetAssemblyVersion.exe” />
<property name=”svn.versionsrc” value=”${include.path}” />
<property name=”svn.username” value=”username” />
<property name=”svn.password” value=”password” />
<property name=”svn.baseuri” value=”svn://subversion.pixolut.com/myrepository” />

Use the following to include the include files in your build script.


<include buildfile=”${include.path}\ftp.include” />
<include buildfile=”${include.path}\svn.include” />
<include buildfile=”${include.path}\prenis.include” />
<include buildfile=”${include.path}\build.include” />


Actions

Information

Leave a comment

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