ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: a replace <replace> doesn't handle
Date Tue, 14 May 2002 13:59:57 GMT
Yes, it should in this particular case, but the ** can occur anywhere in
practice, not just at the end, which is why I was stuck. I don't see how to
do that generally without the ability to replace the end of line ($) with
(/*.class) that I assume <replaceregex> would allow. --DD

-----Original Message-----
From: Diane Holt [mailto:holtdl@yahoo.com] 
Sent: Monday, May 13, 2002 5:58 PM
To: ant-user@jakarta.apache.org
Subject: Re: a replace <replace> doesn't handle

--- Dominique Devienne <DDevienne@lgc.com> wrote:
> I'm stuck trying to convert a file containing class names 'ANT
> pseudo-regex' of the form:
> 
> com.acme.pkg1.**
> com.acme.package*.**
> com.acme.x??.**
> 
> to the equivalent 'ANT file patternset' suitable as an includesfile:
> 
> com/acme/pkg1/**/*.class
> com/acme/package*/**/*.class
> com/acme/x??/**/*.class
> 
> and I need to do that in ANT 1.4.1!!!

Doesn't this work:
  <target name="replace">
    <replace file="file.txt">
      <replacefilter token=".**" value="/**.class"/>
    </replace>
  </target>

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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

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


Mime
View raw message