Hi to the list!

This is my first post to Nant-users. I'm a NAnt newbie. It is entirely
possible that I am asking a foolish question ;-) I have searched the
archives but couldn't find anything relevant to my particular problem.

I am trying to write an auto-build script for our project. We have a
very simple batch file build.bat, which contains the following lines:

@echo off

SET BUILD_PATH=C:\Dev
nant -v -buildfile:HF.build %1

Using different batch files on different machines, developers can have
different build locations (out of convenience for the team).

The Problem
-------------------
In the NAnt build script, I have the following project decl:

<project name="TestProject" 
        default="All"
        basedir="${environement::get-variable('BUILD_PATH')}"
        >

When I run the batch file, I get the following error from NAnt:

INTERNAL ERROR

The given path's format is not supported.

However, later in the script I declare a property:
<property name="path.base" value="${environment::get-variable('BUILD_PATH')}" />

and this is executed fine without problems if I remove the 'basedir'
attribute from the project element.

Finally, when I replace the function call with "C:\Dev" (my local
build location), like this:

<project name="TestProject" 
        default="All"
        basedir="C:\Dev"
        >

I have no problems whatever. Has anyone run into something similar
with the basedir attribute (or anywhere in their script for that
matter)? It seems almost like the function is not being executed.
Perhaps there is something "special" about the basedir attribute, or
the <project> element itself, which is stopping the function executing
from that context... these are all just guesses though. I would really
appreciate any advice/

TIA,


Jules


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_ids93&alloc_id281&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to