We are using the 2.0 version of .NET and in so doing, we had to upgrade most of our build tools (NAnt, NUnit, NAntContrib, FxCop, CruiseControl, etc.) and I am not experiencing some problems with the <vssadd task.

I am using NAnt NAnt 0.85 (Build 0.85.1714.0; net-1.0.win32; nightly; 9/10/2004)
 and NAntContrib from the nightly build nantcontrib-0.85-20040901.

My previous version of NAntContrib  0.84.1435.0 and everything worked correctly. 

I have confirmed that all my properties that are passed to the <vssadd task are properly populated.

 

Below is the error statement from the vssadd task.  It looks like the error is "System.IndexOutOfRangeException: Index was outside the bounds of the array."
   at System.String.get_Chars(Int32 index)
   at NAnt.Contrib.Tasks.SourceSafe.AddTask.CreateProjectPath(String file) in C:

D:\Fishnet\Explorer\Database\Db\Database.build(486,4):
Failure adding 'D:\Fishnet\Explorer\Database\Db\Base\AbstractEntityCollection.vb
' to SourceSafe.:
NAnt.Core.BuildException: D:\Fishnet\Explorer\Database\Db\Database.build(486,4):

Failure adding 'D:\Fishnet\Explorer\Database\Db\Base\AbstractEntityCollection.vb
' to SourceSafe. ---> System.IndexOutOfRangeException: Index was outside the bou
nds of the array.
   at System.String.get_Chars(Int32 index)
   at NAnt.Contrib.Tasks.SourceSafe.AddTask.CreateProjectPath(String file) in C:
\DOCUME~1\drieseng\LOCALS~1\Temp\tmp3BA9.tmp\src\Tasks\SourceSafe\AddTask.cs:lin
e 144
   at NAnt.Contrib.Tasks.SourceSafe.AddTask.ExecuteTask() in C:\DOCUME~1\driesen
g\LOCALS~1\Temp\tmp3BA9.tmp\src\Tasks\SourceSafe\AddTask.cs:line 99
   --- End of inner exception stack trace ---
   at NAnt.Contrib.Tasks.SourceSafe.AddTask.ExecuteTask() in C:\DOCUME~1\driesen
g\LOCALS~1\Temp\tmp3BA9.tmp\src\Tasks\SourceSafe\AddTask.cs:line 117
   at NAnt.Core.Task.Execute() in C:\Documents and Settings\drieseng\Local Setti
ngs\Temp\tmpA19.tmp\src\NAnt.Core\Task.cs:line 177
   at NAnt.Core.Target.Execute() in C:\Documents and Settings\drieseng\Local Set
tings\Temp\tmpA19.tmp\src\NAnt.Core\Target.cs:line 249
   at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) in
 C:\Documents and Settings\drieseng\Local Settings\Temp\tmpA19.tmp\src\NAnt.Core
\Project.cs:line 876
   at NAnt.Core.Project.Execute() in C:\Documents and Settings\drieseng\Local Se
ttings\Temp\tmpA19.tmp\src\NAnt.Core\Project.cs:line 833
   at NAnt.Core.Project.Run() in C:\Documents and Settings\drieseng\Local Settin
gs\Temp\tmpA19.tmp\src\NAnt.Core\Project.cs:line 902

<property name="username" value="BuildMachineUser"/>
<property name="password" value="buildpass"/>
<property name="projectpath" value="${nant.project.basedir}"/>
<property name="ssdbpath" value="\\sourcesafeserver\vss\Fish\srcsafe.ini"/>
<property name="ssrootprojectname" value="$/Database/Database"/>

<vssadd
verbose="true"
dbpath="${ssdbpath}"

user="${username}"
password="${password}"
path="${ssrootprojectname}/Base" >

<fileset basedir="${projectpath}\Base"> 
    <include name="*.vb"/>
</fileset>
</vssadd>

 
 

Reply via email to