Hey all,
 
I did some "debugging".   It appears that if the xmlns project attribute is removed from the project.build's project task then it will work.   Not sure why having xmlns="http://nant.sf.net/schemas/nant-0.85.win32.net-1.0.xsd" in the project task will 'cause the errors.   Maybe someone can shed some light on this?
 
Felice
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Ryan Cromwell
Sent: Wednesday, November 03, 2004 9:21 AM
To: 'Michael Joseph'; [EMAIL PROTECTED]
Subject: RE: [Nant-users] <include />... 0.85

Actually – it did J.

 

I replaced asdf with dosomething in the email to avoid the confusion in the thread.  If you look at the cmd line and the 2 build files, you’ll notice ‘asdf’ is referenced no-where.  Here’s the direct output with the below files – notice that the dosomething this time.

 

Target(s) specified: Initialize

 

  [include] Including file C:\projects\SSADotNet\Speedway.ConfigurationManagemen

t\1.0\DOTNET\SystemInfo.build.

 

Initialize:

 

 

BUILD FAILED

 

Target 'dosomething' does not exist in this project.:

NAnt.Core.BuildException: Target 'dosomething' does not exist in this project.

   at NAnt.Core.Project.TopologicalTargetSort(String root, TargetCollection targ

ets, Hashtable state, Stack visiting, TargetCollection executeTargets) in d:\Sou

rce\nant-20041101T190514Z\src\NAnt.Core\Project.cs:line 1524

   at NAnt.Core.Project.TopologicalTargetSort(String root, TargetCollection targ

ets) in d:\Source\nant-20041101T190514Z\src\NAnt.Core\Project.cs:line 1441

   at NAnt.Core.Tasks.CallTask.ExecuteTask() in d:\Source\nant-20041101T190514Z\

src\NAnt.Core\Tasks\CallTask.cs:line 104

   at NAnt.Core.Task.Execute() in d:\Source\nant-20041101T190514Z\src\NAnt.Core\

Task.cs:line 177

   at NAnt.Core.Target.Execute() in d:\Source\nant-20041101T190514Z\src\NAnt.Cor

e\Target.cs:line 249

   at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) in

 d:\Source\nant-20041101T190514Z\src\NAnt.Core\Project.cs:line 876

   at NAnt.Core.Project.Execute() in d:\Source\nant-20041101T190514Z\src\NAnt.Co

re\Project.cs:line 833

   at NAnt.Core.Project.Run() in d:\Source\nant-20041101T190514Z\src\NAnt.Core\P

roject.cs:line 902

 


From: Michael Joseph [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 10:08 AM
To: Ryan Cromwell; [EMAIL PROTECTED]
Subject: RE: [Nant-users] <include />... 0.85

 

You're asking NAnt to execute target asdf, which doesn't exist in any of your build files.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Cromwell
Sent: Wednesday, November 03, 2004 3:58 PM
To: [EMAIL PROTECTED]
Subject: [Nant-users] <include />... 0.85

I’m beginning the journey of upgrading our build scripts to 0.85 in anticipation of a release coming in the near future.  I’ve run into a road block though… it appears <include /> is not working at all.  Take a look at the two build files below and let me know if I’m doing something odd – these scripts worked in the 0.84 release.

 

 

Command Line: Nant –t:net-1.1 /k:net-1.1 /f:project.build –v

 

Project.build

<project default="Initialize" xmlns="http://nant.sf.net/schemas/nant-0.85.win32.net-1.0.xsd">

      <include buildfile="SystemInfo.build" failonerror="true" verbose="true" />

           

 

      <!-- Initializes properties needed to complete a single build. -->

      <target name="Initialize">

            <!-- These properties describe the project that is going to be built -->

            <call target="dosomething" />

      </target>

</project>

 

SystemInfo.build

<project name="ugh">

      <target name="dosomething">

            <echo message="liueriljwekr" />

      </target>

</project>

 

Verbose Output:

Framework 'net-1.0' is invalid and has not been loaded : The 'System.dll' assemb

ly does not exist in framework assembly directory 'C:\WINNT\Microsoft.NET\Framew

ork\v1.0.3705'.

 

Framework 'net-2.0' is invalid and has not been loaded : Framework directory 'C:

\WINNT\Microsoft.NET\Framework\v2.0.40607' does not exist.

 

Framework 'mono-1.0' is invalid and has not been loaded : Registry Path Not Foun

d! - key='SOFTWARE\Novell\Mono\';hive='Microsoft.Win32.RegistryHive[]';

 

Framework 'sscli-1.0' is invalid and has not been loaded : Framework directory '

C:\sscli\build\v1.x86fstchk.rotor' does not exist.

 

Buildfile: file:///C:/projects/SSADotNet/Speedway.ConfigurationManagement/1.0/DO

TNET/project.build

Base Directory: C:\projects\SSADotNet\Speedway.ConfigurationManagement\1.0\DOTNE

T.

Target(s) specified: asdf

 

  [include] Including file C:\projects\SSADotNet\Speedway.ConfigurationManagemen

t\1.0\DOTNET\SystemInfo.build.

 

BUILD FAILED

 

Target 'asdf' does not exist in this project.:

NAnt.Core.BuildException: Target 'asdf' does not exist in this project.

   at NAnt.Core.Project.TopologicalTargetSort(String root, TargetCollection targ

ets, Hashtable state, Stack visiting, TargetCollection executeTargets) in d:\Sou

rce\nant-20041101T190514Z\src\NAnt.Core\Project.cs:line 1524

   at NAnt.Core.Project.TopologicalTargetSort(String root, TargetCollection targ

ets) in d:\Source\nant-20041101T190514Z\src\NAnt.Core\Project.cs:line 1441

   at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) in

 d:\Source\nant-20041101T190514Z\src\NAnt.Core\Project.cs:line 863

   at NAnt.Core.Project.Execute() in d:\Source\nant-20041101T190514Z\src\NAnt.Co

re\Project.cs:line 833

   at NAnt.Core.Project.Run() in d:\Source\nant-20041101T190514Z\src\NAnt.Core\P

roject.cs:line 902

 

Total time: 0 seconds.

 

Reply via email to