ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Svetlin Stanchev" <stanc...@360t.com>
Subject RE: bug or feature in <replaceregexp/> ?
Date Mon, 11 Aug 2003 09:41:44 GMT
Aha, then the solution seems quite simple indeed:
    <path id="temp-buildroot">
      <pathelement location="${build.root}"/>
    </path>
    <pathconvert 
      dirsep="/" 
      property="regexp-compliant.buildroot"
      refid="temp-buildroot"/>
    <echo>converted buildroot: ${regexp-compliant.buildroot}</echo>

Thanks, Stefan!
-- 
Svetlin


> -----Original Message-----
> From: Stefan Bodewig [mailto:bodewig@apache.org] 
> Sent: Monday, August 11, 2003 8:54 AM
> To: user@ant.apache.org
> Subject: Re: bug or feature in <replaceregexp/> ?
> 
> 
> On Fri, 8 Aug 2003, Svetlin Stanchev <stanchev@360t.com> wrote:
> 
> > ${build.root} is set in the (Windows) environment to 
> > d:\CleanStart\buildroot.
> 
> this is the problem, in order to get the regular expression 
> engine to accept the backslashes, you have to double them.
> 
> Stefan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 


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


Mime
View raw message