|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
printing &Quote; text to a fileHi,
I need to print the
actual text ""e" (minus the quote marks) to a file and not have nant
translate that to a " character.
I have tried ${'"'} but it still prints the "
mark rather than the text ".
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 "e; is translated to " during the
process.
My property in the
property file is like this:
<property
name="connection.string" value="connection
string=${'"'}database=foo;uid=foo;pwd=foo;${'"'}"/>
In the new file, I
am expecting to see this:
"database=foo;uid=foo;pwd=foo;"
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@... https://lists.sourceforge.net/lists/listinfo/nant-users |
|
|
|
|
|
Re: printing &Quote; text to a fileAnd, I don't even think you need the expression... <property
name="connection.string" value="connection string=&quotdatabase=foo;uid=foo;pwd=foo;&quot;"/> Although I haven't tested it. YMMV. BOb From: Justin Daubenmire
[mailto:justin@...] Thanks Craig that did it! For anyone reading this, here was the syntax that worked: <property
name="connection.string" value="connection string=${'&quot;'}database=foo;uid=foo;pwd=foo;${'&quot;'}"/>
"database=foo;uid=foo;pwd=foo;" /Justin From: Craig Beck
[mailto:Craig.Beck@...] Have you tied "&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 ""e" (minus the quote marks) to
a file and not have nant translate that to a " character. I
have tried ${'"'} but it still prints the " mark rather than the
text ". 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> All
merges fine accept the "e; is translated to " during the process. My
property in the property file is like this: <property
name="connection.string" value="connection string=${'"'}database=foo;uid=foo;pwd=foo;${'"'}"/> In
the new file, I am expecting to see this: "database=foo;uid=foo;pwd=foo;" 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@... https://lists.sourceforge.net/lists/listinfo/nant-users |
| Free embeddable forum powered by Nabble | Forum Help |