Gary,
  Thanks for the suggestion, replacing \n\r didn't work but 

string::replace(... , '
', '')

did!

I don't think I can use the arg tags because I have a set of standard
arguments I always use, and then append the specific type parameters for
htmlhelp, html or pdf documents, and I'd like to only have one copy of the
main parameters.

Thanks for everyones help.

John


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gary Feldman
Sent: Wednesday, February 22, 2006 4: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