I need some serious help friends.. I am not sure whats wrong here.
My Nant script doesnt call a executable using exec..
I even tried calling a batch file. I can execute this batch script
absolutely fine using command prompt.
I am trying to create a target inside my build file to compile a
ASP.NET application using devenv.com (Microsoft Visual Studio 2008).
Any other suggestions are also welcome.. please help..


This is the script:
<?xml version="1.0"?>
<project name="BES" default="build" basedir="D:\Temp\BESLog">
<property name="batch" value="D:\Program Files\CruiseControl.NET\server
\BES-QA"/>
        <target name="build">
               <exec basedir="${batch}" program="besbuild.bat">
               </exec>
        </target>
</project>

Error Message:
D:\temp>nant -buildfile:BES.build
NAnt 0.86 (Build 0.86.2898.0; beta1; 12/8/2007)
Copyright (C) 2001-2007 Gerry Shaw
http://nant.sourceforge.net
Buildfile: file:///D:/temp/BES.build
Target framework: Microsoft .NET Framework 3.5
Target(s) specified: build
build:
BUILD FAILED
D:\temp\BES.build(15,3):
'D:\Program Files\CruiseControl.NET\server\BES-QA\besbuild.bat' failed
to start.
    The directory name is invalid
Total time: 0.2 seconds.


Reply via email to