[Mono-list] NAnt bug in LocationMap - incorrect xpath generation

Martin Aliger martin_aliger@email.cz
Fri, 27 Sep 2002 10:50:48 +0200 (CEST)


--------------Boundary-00=_OW9340MWKGMMYJ0CCJD0
Content-Type: Text/Plain;
  charset=iso-8859-2
Content-Transfer-Encoding: quoted-printable

Hi NAnt team,

while my attempt to get new NAnt working under mono I found this:

in LocationMap.Add method you are contructing xpath and store it into has=
h. There is no need to store path to every node, so you filter some nodes=
 away (comments,whitespace,...). But this filtering broke children counti=
ng (in indexAtDepth).

I attach my solution to this problem. Note, that it is based on newest do=
wnloadable source nant-src-0.7.9.0. I have no access to CVS - sorry for t=
hat. More sorries if this is already reworked.

Martin


_________________________________________________________________________=
_____
Dom=E1c=ED spot=F8ebi=E8e a elektronika za ak=E8n=ED ceny =96 slevy a=BE =
50 %.=20
Klikn=ECte na: http://www.obchodni-dum.cz/index.phtml?prov=3D54&akce=3Dye=
s


--------------Boundary-00=_OW9340MWKGMMYJ0CCJD0
Content-Type: text/plain;
  charset=iso-8859-2
Content-Transfer-Encoding: quoted-printable


--------------Boundary-00=_OW9340MWKGMMYJ0CCJD0--