A follow-up question on the VS XML ampersand problem:
To try fix the XML parsing, I want to filter out
the '&' and substitute it with '&'
I try to use a Nant task with a <copy> and <filterchain>
to do that :
<filterchain>
<replacestring
from="class=Cics&services=NY51000"
to="class=Cics&services=NY51000"
ignorecase="true"
/>
</filterchain>
but now NAnt complains that it can't load its own build file
due to the from="class=Cics&services=NY51000" ... :
Error loading buildfile.
This is an unexpected token. The expected token is 'SEMICOLON'.
Line 436, position 36.
Is there a way in Nant that I can escape the "raw" ampersand
in the string ?
Best regards
Allan dystrup
_________________________________________________________________________
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af Nielsen.Allan Rene
Dystrup AND
Sendt: 27. august 2005 09:28
Til: Matthew Mastracci; [email protected]
Emne: [Nant-users] Re: BUILD FAILED in <solution> .csprog with '&' in a
WebReferenceUrl
Hi Matt,
Yes you're right, it should indeed be &
If I correct this in the VS .csproj file, the Nant <solution>
will load and build the project (and the rest of the solution).
I may be able to use this as a patch until MS fixes the VS.NET XML
generation; It seems to be localized to WebReferenceUrl definitions.
Thanks for the advice!
Best regards
Allan dystrup
________________________________________________________________________
Fra: Matthew Mastracci [mailto:[EMAIL PROTECTED]
Sendt: 27. august 2005 00:38
Til: Nielsen.Allan Rene Dystrup AND; [email protected]
Emne: Re: BUILD FAILED in <solution> .csprog with '=' in a
WebReferenceUrl
Actually, it looks like the token that breaks your project is the
unquoted ampersand. :)
VS.NET has a strange problem where it dumps unquoted ampersands into
otherwise valid XML. There isn't an easy fix available, since we can't
even load the XML!
________________________________________________________________________
Nielsen.Allan Rene Dystrup AND wrote:
> I have this task in my Nant build file :
>
> <solution
> configuration="debug"
> solutionfile="C:\projects\KMD.NI\KMD.NI.SdpiEws\KMD.NI.SdpiEws.sln"
> verbose="true"
> >
> <webmap>
> ... etc ...
> </webmap>
> </solution>
>
> In a project file : KMD.NI.SdpiEws.TestUtilities.csproj VS.Net has
> defined the following setup :
> <Folder
> RelPath = "Web References\ny510Ref\"
> WebReferenceUrl =
>
"http://wsswlbs-wm1q2003.kmd.dk/wsdl/composite.ashx?class=Cics&services=
NY51000"
> UrlBehavior = "Static"
> />
>
> Running this the above NAnt <Solution> i get:
> [solution] Loading referenced project
'C:\projects\KMD.NI\KMD.NI.SdpiEws\KMD.NI.SdpiEws.Utilities\KMD.NI.SdpiE
ws.Utilities.csproj'.
> BUILD FAILED
> Error loading project
'C:\projects\KMD.NI\KMD.NI.SdpiEws\KMD.NI.SdpiEws.Utilities\KMD.NI.SdpiE
ws.Utilities.csproj'.
> This is an unexpected token. The expected token is 'SEMICOLON'. Line
> 283, position 110.
>
> The token that breaks the build is : L283,p110: the '=' in
"...=NY51000"
> This seems like an error in the project file parser.
>
> Is this a known issue? If so, is a patch available?
> Best regards,
> Allan dystrup
_______________________________________________________________________________________
www.kmd.dk www.kundenet.kmd.dk www.eboks.dk www.civitas.dk
www.netborger.dk www.organisator.dk
Hvis du har modtaget denne mail ved en fejl vil jeg gerne, at du informerer mig
og sletter den.
KMD skaber it-services, der fremmer effektivitet hos det offentlige,
erhvervslivet og borgerne.
If you received this e-mail by mistake, please notify me and delete it. Thank
you.
Our mission is to enhance the efficiency of the public sector and improve its
service of the general public.
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nant-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users