ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <...@ronin-technologies.com>
Subject Re: Recursive Text Replacement in Files with no Extension
Date Mon, 08 May 2006 20:38:54 GMT
That was the problem.

Thanks,
Joe

On Mon, 8 May 2006 16:31:34 -0400
  Robert Clark <robert.clark@quest.com> wrote:
> On Monday May 8, 2006 16:18, joe@ronin-technologies.com 
>wrote:
>> I'm trying to use a "replace" task to recursively 
>>replace
>> a string in a set of files, but it only seems to work if
>> the file names have an extension (e.g. **/*.java).  In 
>>my
>> case, I am trying to recursively edit the set of files
>> named "Root" that exist with the CVS subdirectories of
>> project checked out from CVS.
> 
> I think you are running into the default excludes in all 
>directory 
> based Ant tasks:
> 
> <http://ant.apache.org/manual/dirtasks.html#defaultexcludes>
> 
>> The task I'm trying looks like this:
>>
>> <replace
>>     summary="yes"
>>     dir="./"
>>     token="foo"
>>     value="bar"
>>     includes="**/Root"/>
> 
> Try:
> 
> <replace
>     summary="yes"
>     dir="./"
>     token="foo"
>     value="bar"
>     defaultexcludes="no"
>     includes="**/Root"/>
> 
> - Rob
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
> 

Joe Morrogh
410.379.2277

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


Mime
View raw message