From: Gary F. <sf_...@ma...> - 2006-02-22 22:26:34
|
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 "'${admon.graphics.path}'" >--param admon.graphics ${admon.graphics} >--param paper.type "'USletter'" >--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 |