Jean-Michel,
 
The easiest way to debug issues with build script files is to reduce the
script file to a manageable size (usually only the task that you're trying
to get to work).
Slowly enhance the build script to do more.
 
It looks like you're trying to run the exec task and execute devenv.exe.
 
1) Ensure that you started the Visual Studio .NET Command Prompt window (or
have run VCVARS.bat to set up the environment)
2) Place the following script into a .build file in a directory that
contains a solution file
3) Modify the file argument value to be the name of your solution file.
4) Run NAnt
5) Look at the Build.Out file to see the results
 
 
<project name="Test" default="Default">

    <target name="Default" >
            <exec program="devenv.exe" verbose="true" >
                        <arg file="xxxxxxxxxxxxx.sln" />
                        <arg value="/out" />
                        <arg value="Build.out" />
                        <arg value="/rebuild" />
                        <arg value="debug" />
            </exec>
    </target>

</project>


 
It also looks like you're trying to run the exec task and execute VSS.
The script below uses the NAntContrib vssget task (maybe it will do what you
need)
 
1)       Download the nightly build of NAntContrib
2)       Copy the contents of the NAntContrib\bin directory into the
NAnt\bin directory
3)       Place the following script into a .build file
4)       Modify the arguments to appropriate values for your VSS database
a.       If your VSS database doesn't require a "user" or "password", then
remove those attributes (modify the one's you need)
b.       Modify the localpath value to the local directory where the files
will be retrieved
c.       Modify the dbpath value to the location of your srcsafe.ini for the
database being accessed
d.       Modify the path value to the VSS database path
5)       Run NAnt
 
The script below gets all the files recursively starting at the
$/Development/Test folder in VSS
 
 
<project name="TestVSS" default="Default">

    <target name="Default" >
        <vssget user="user"
                password="pwd"
                localpath="c:\Projects\Test"
                dbpath="c:\vssnet\srcsafe.ini"
                path="$/Development/Test"
                recursive="true"
                replace="true"
                writable="false"
                />
    </target>

</project>


 
Let me know how well you fair.
 
Let me know if you have any problems and I'll attempt to help.
 
Thanks,
Noel
 
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Jean-Michel
Theriault
Sent: Thursday, June 17, 2004 12:18 PM
To: [EMAIL PROTECTED]
Subject: [Nant-users] Errors with installed programs
 
Whenever I build I get these errors about installed programs that work fine
and that I can call in the command prompt with no problem. Someone told me
that it might be because I am running on Win XP pro. Could this be
possible??
 
Here are the errors:
 
External Program Failed: c:\Program Files\Microsoft Visual
Studio\VSS\win32\ss.exe (return code was 100)
...
BUILD FAILED
            
            External Program Failed: devenv.exe (return code was 1)
            
            Total time: 359.3 seconds.
....
BUILD FAILED
 
Nested build failed.  Refer to build log for exact reason.
 
Total time: 468.6 seconds.
 
As from what I can understand here it can't get source safe and microsoft
dev env to run. I'm new with NAnt, just learned it 3 weeks ago for my COOP
internship. So trying to debug this is hard for me...but I have been getting
a lot of help from you guys...I appreciate. So anyone know anything about
these errors??
 
Thanx again....
    Jean Michel Thériault
      [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 
 

<<attachment: winmail.dat>>

Reply via email to