Also, for a linefeed, it's usually \n\r (or is that \r\n).  I had a similar
problem when unit testing... i took out the \n, but the \r (line feed) was
still there, and a newline was inserted anyway.  You might want to try
taking out both.

Andy

-----Original Message-----
From: Gary Feldman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 22, 2006 5:26 PM
To: [email protected]
Subject: Re: [NAnt-users] replacing a linefeed....


Sorry about the accidental mouse click sending my previous mail void of
new content.

John Cole wrote:

>               <property name="params.pdf" value="--stringparam
>fop.extensions 1
>--param admon.graphics.path &quot;'${admon.graphics.path}'&quot;
>--param admon.graphics ${admon.graphics}
>--param paper.type &quot;'USletter'&quot;
>--param make.year.ranges 1
>--param generate.index 1
>" />
>
>
>
Is there any way you can get the <arg ...> style of argument for the
<exec> task to work for you?  It would keep the easy-to-read multiline
layout while eliminating the problem with the linefeed.  It would give
up some flexibility, but it doesn't look like you need it.

>I'd like to keep the initial property assignment WITH the lines, so it's
>easier to read, and strip them out before using the command.
>
>This didn't work as I had hoped :-(
>
>               <property name="params.htmlhelp"
>value="${string::replace(params.htmlhelp, '\n', '')}" />
>               <echo message="${params.htmlhelp}" />
>
>
If embedding a return in the string above results in a crlf in the
string, then perhaps you should try
    string::replace(... , '
', '')

i.e., use a real crlf instead of \n.

Gary




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to