Thanks Craig that did it!
 
For anyone reading this, here was the syntax that worked:
 
 <property name="connection.string" value="connection
string=${'&amp;quot;'}database=foo;uid=foo;pwd=foo;${'&amp;quot;'}"/>

The output was this:
 
&quot;database=foo;uid=foo;pwd=foo;&quot;
 
 
/Justin
 
 
 
________________________________

From: Craig Beck [mailto:craig.b...@microsoft.com] 
Sent: Wednesday, October 21, 2009 10:40 AM
To: Justin Daubenmire
Subject: Re: [NAnt-users] printing &Quote; text to a file


Have you tied "&amp;quot;" yet? 


Go with the flow. I it wants to translate the entities, then use the
entity for the ampersand and let it get translated.





On Oct 21, 2009, at 7:28 AM, Justin Daubenmire wrote:


        Hi,
         
        I need to print the actual text "&quote" (minus the quote marks)
to a file and not have nant translate that to a " character.
         
        I have tried ${'&quot;'} but it still prints the " mark rather
than the text &quot;.
         
        How can I get this to work?
         
        I'm trying to put this escape sequence in a properties file and
using this to merge:
         
              <filterchain>
                <expandproperties />
              </filterchain>
        
        
         
        All merges fine accept the &quote; is translated to " during the
process.
         
        My property in the property file is like this:
         
        <property name="connection.string" value="connection
string=${'&quot;'}database=foo;uid=foo;pwd=foo;${'&quot;'}"/>
         
        In the new file, I am expecting to see this:
        &quot;database=foo;uid=foo;pwd=foo;&quot;
         
        but get this...
         
        
        "database=foo;uid=foo;pwd=foo;"
         
         
        Thanks!
         
         
        /Justin
        
------------------------------------------------------------------------
------
        Come build with us! The BlackBerry(R) Developer Conference in
SF, CA
        is the only developer event you need to attend this year.
Jumpstart your
        developing skills, take BlackBerry mobile applications to market
and stay 
        ahead of the curve. Join us from November 9 - 12, 2009. Register
now!
        
http://p.sf.net/sfu/devconference_______________________________________
________
        NAnt-users mailing list
        NAnt-users@lists.sourceforge.net
        https://lists.sourceforge.net/lists/listinfo/nant-users
        


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to