Thanks Gary!

That does solve my (or rather Microsofts' :) problem.

Best regards
  Allan Dystrup

______________________________________________________________________
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af Gary Feldman
Sendt: 28. august 2005 03:12
Til: nant-users@lists.sourceforge.net
Emne: Re: [Nant-users] Followup:: BUILD FAILED in <solution> .csprog with '&' 
in a WebReferenceUrl

Nielsen.Allan Rene Dystrup AND wrote:

>Since NAnt seems to be using the same parser for its own build file
>as for VS project files (indeed for XML files in general), the approach 
>below hardly going to work...
>  
>
Sure it will if you get the quoting right.

>To try fix the XML parsing, I want to filter out
>the '&' and substitute it with '&amp;'
>
>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&amp;services=NY51000" 
>         ignorecase="true" 
>      />
>   </filterchain>
>  
>
You need to make sure that the ampersand is entered as an entity 
reference in the input to NAnt, and that the ampersand in the resulting 
file is also represented by an entity reference.  This means that the 
latter has the peculiar, but legal form "&amp;amp;".

So try:

   <filterchain>
      <replacestring 
         from="class=Cics&amp;services=NY51000" 
         to="class=Cics&amp;amp;services=NY51000" 
         ignorecase="true" 
      />
   </filterchain>

Gary




-------------------------------------------------------
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
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users




_______________________________________________________________________________________
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
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to