Menu

#11 Previously working build now broken

unknown
closed
nobody
Core (183)
5
2002-03-13
2002-03-12
Brad Wilson
No

I have a .build file that was previously working, but
now when I attempt to build it, I get:

---
C:\Brad\dotnetwebserver >> nant
Buildfile: C:\Brad\dotnetwebserver\WebServer.build

INTERNAL ERROR
System.ArgumentException: Xml node has not been mapped.
at SourceForge.NAnt.LocationMap.GetLocation(XmlNode
node)
at SourceForge.NAnt.Element.Initialize(XmlNode
elementNode)
at
SourceForge.NAnt.Project.InitializeProjectDocument
(XmlDocument doc)
at SourceForge.NAnt.Project.Run()

Please send bug report to nant-
developers@lists.sourceforge.net
Try 'nant -help' for more information
---

Note that the new "-projecthelp" command works, so the
XML file is at least well formed:

---
C:\Brad\dotnetwebserver >> nant -projecthelp
Default Target:

build Builds the web server

Main Targets:

all Executes: 'clean build doc'
build Builds the web server
clean Cleans out all built files
dist Makes distribution ZIP
(forces 'clean release build doc')
doc Builds the web server
documentation
release Add this to build release builds
(debug are default)
run Runs the web server

Sub Targets:
---

I've attached the broken .build file. You don't need
any of the source files to reproduce it. I am using
NAnt version 0.8.797 (as pulled from CVS on 3-11-2002).

Discussion

  • Brad Wilson

    Brad Wilson - 2002-03-12

    Broken .build file

     
  • Ian MacLean

    Ian MacLean - 2002-03-13
    • status: open --> closed
     
  • Ian MacLean

    Ian MacLean - 2002-03-13

    Logged In: YES
    user_id=321872

    Found the bug in locationmap.cs. Somthing wrong in my
    original algorithm. A combination of making targets
    elements ( giving them a location member ) and having a
    comment as the first element of the file manifested the
    bug. without those conditions it would get the wrong xpath
    for an element but it wouldn't matter because that would
    match the previous item in the map ( incorrectly )

     

Log in to post a comment.