ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Help with Replace regexp with ant 1.5
Date Fri, 31 Jan 2003 10:02:22 GMT
Sorry for the late reply

On Thu, 16 Jan 2003, Bin Chen <binchen@bea.com> wrote:

> <replaceregexp file="${MYDir}/mycommand.cmd">
>   <regexp pattern=":_insertpathhere"/>
>   <substitution expression="@rem My path &#x0A;
>      set MY_HOME=@ROOT@#x5c;mybindir"/>
> </replaceregexp>
> 
> Here is the output I expect to have
> @rem My path
> set MY_HOME=@ROOT\mybindir
> 
> What I got with the about <replaceregexp> is
> @rem My path
> set MY_HOME=@ROOTmybindir

What do you get if you simply use \\ instead of &#x5c; in above
substitution?

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: ant-user-help@jakarta.apache.org


Mime
View raw message