|
Here is my .build
file: <?xml
version="1.0" encoding="utf-8" ?> <project
xmlns="http://nant.sf.net/schemas/nant-0.84.win32.net-1.0.xsd"
name="MkVer2.Tasks" default="test"> <!--
Debug/Release --> <property
name="debug" value="true" /> <!-- will be set by
command line --> <if
propertyexists="debug" propertytrue="debug"> <property
name="target.dir"
value="${nant.project.basedir}\..\bin\Debug" /> </if> <ifnot
propertytrue="debug"> <property
name="target.dir"
value="${nant.project.basedir}\..\bin\Release" /> </ifnot> <property
name="task.assembly"
value="NAnt.${nant.project.name}.dll"/>
<!-- Compile the test task and add it then use it. -->
<target name="main">
<csc target="library"
output="${target.dir}/${task.assembly}">
<sources>
<includes name="MkverTask.cs"/>
</sources>
<references basedir="${nant.location}">
<includes name="NAnt.Core.dll"/>
</references>
</csc>
</target>
<target name="test" depends="main">
<!-- Dynamically load the tasks in the Task assembly. -->
<loadtasks assembly="${target.dir}\${task.assembly}" />
<property name="testdata.dir"
value="${nant.project.basedir}\..\test"
verbose="true"/>
<!-- Call our new task, converts the message attribute to all caps and
displays it. -->
<!-- MkVer2.exe -set:%NEW_VERSION% -out:@src\Version\TRI.rsp -template:src\Version\templates
src\Version\TRI.pvd -->
<mkver2 output="@${testdata.dir}\version.rsp"
templatedir="${testdata.dir}\templates"
pvdfile="${testdata.dir}\version.pvd" verbose="true"/>
<mkver2 set="" output="@${testdata.dir}\version.rsp"
templatedir="${testdata.dir}\templates"
pvdfile="${testdata.dir}\version.pvd" verbose="true"/>
</target>
<target name="clean">
<!-- Delete the build output. -->
<delete file="${target.dir}/${task.assembly}" />
</target>
<target name="rebuild" depends="clean"> <call
target="test"/>
</target> </project> Here is the error
output: NAnt 0.84 (Build
0.84.1455.0; net-1.0.win32; release; 12/26/2003) Copyright (C)
2001-2003 Gerry Shaw http://nant.sourceforge.net Buildfile:
file:///c:/dev/src/jls/vrt/8.5/MkVer2/NantTask/MkverTask.build Target(s) specified:
test [sysinfo]
Setting system information properties under sys.* main: test: [loadtasks]
Loading tasks from assembly
c:\dev\src\jls\vrt\8.5\MkVer2\NantTask\..\bin\Debug\NAnt.MkVer2.Tasks.dll. BUILD FAILED INTERNAL ERROR System.NotSupportedException:
The given path's format is not supported. at
System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean
needFullPath) at
System.Security.Util.StringExpressionSet.AddExpressions(String[] str, Boolean
checkForDuplicates, Boolean needFullPath) at
System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess
access, String[] pathListOrig, Boolean checkForDuplicates, Boolean
needFullPath, Boolean copyPathList) at
System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess
access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath) at
System.IO.FileInfo..ctor(String fileName) at
NAnt.User.Tasks.Mkver2Task.NeedsToRun() at
NAnt.User.Tasks.Mkver2Task.ExecuteTask() at
NAnt.Core.Task.Execute() at
NAnt.Core.Target.Execute() at
NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) at
NAnt.Core.Project.Execute() at
NAnt.Core.Project.Run() Please send bug
report to [EMAIL PROTECTED] Total time: 0.2
seconds. Project : error
PRJ0019: A tool returned an error code from "Performing Makefile project
actions" Build log was saved
at "file://c:\dev\src\jls\vrt\8.5\MkVer2\NantTask\Debug\BuildLog.htm" NAntTask - 1
error(s), 0 warning(s) The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. |
