Hi,

I have a bit of a problem.  We currently use a nightly build from 30-06-2004
for building our system.  I am looking at upgrading to RC2, but have hit a
problem with the way directories are treated.  Our build script consists of
a top level build file invoked by a .bat file, this then uses the <nant>
task to shell out build scripts for the actual components etc. Under the old
build, if I called directory::get-current-directory(), then it returned me
the folder for the currently executing build file, however under RC2, it
returns the folder for the top level controlling script.

I can get the folder in RC2 by using the project::get-base-directory(), but
this function was not available in 30-06-20054 version.  The problem is I
cannot force all the user base to upgrade NAnt, so how can I change my build
script to allow both methods?  Is there a simple way to check the version of
NAnt inside the script?  What version of NAnt did this functionality change
and why?  It seems a strange change to make in some ways as I would have
thought the original behavior was correct, and in the interest of preserving
backward compatibility, wouldn't it have been better to add a new method to
perform the new functionality rather than changing the existing method and
adding a new one to provide the old functionality?

The old behavior seems to be used a lot internally too, as I used to be able
to pass a relative path into tasks like <nunit> whereas now it looks like
I'll have to create the full path inside the script to pass in.  This just
means more script to write and maintain.

TIA,

Bill
 


UK businesses use 2 million tonnes of paper each year.
THINK before you PRINT this email.
______________________________________________________________

CONFIDENTIALITY NOTICE

This communication and the information it contains is intended for the person 
or organisation to 
whom it is addressed.  Its contents are confidential and may be protected in 
law.  Unauthorised use,
 copying or disclosure of any of it may be unlawful.  If you are not the 
intended recipient, please 
contact us immediately.

The contents of any attachments in this e-mail may contain software viruses, 
which could damage your 
own computer system.  While Marlborough Stirling has taken every reasonable 
precaution to minimise 
this risk, we cannot accept liability for any damage, which you sustain as a 
result of software 
viruses.  You should carry out your own virus checking procedure before opening 
any attachment.

Marlborough Stirling plc, Registered in England and Wales 
Registered No. 3008820,
Jessop House, Jessop Avenue, Cheltenham, Gloucestershire, GL50 3SH
Tel: 01242 547000     Fax: 01242 547100
http://www.marlborough-stirling.com



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Nant-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to