You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jordan Reed <re...@yahoo.com> on 2004/05/15 00:01:53 UTC

replaceregexp - Speed Issues

I'm generating a large collection of files (thousands) in an ant build process
and then I need to regex replace the files with five different regexs.

I am currently using fix calls to replaceregexp to do the replacement.  The
problem is that to process all of these files is very slow each time.  The task
doesn't seem to care if the files have been regenerated or not since the last
run,  so even if only one file has changed, all few thousand get reprocessed by
all the expressions.

Can anyone recommend a way of speeding this up?

-jdr

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


Re: replaceregexp - Speed Issues

Posted by Jordan Reed <re...@yahoo.com>.
--- Jack Woehr <ja...@purematrix.com> wrote:
> Jordan Reed wrote:
> 
> > doesn't seem to care if the files have been regenerated or not since the
> last
> > run,  so even if only one file has changed, all few thousand get
> reprocessed by
> > all the expressions.
> >
> > Can anyone recommend a way of speeding this up?
> >
> 
> Learning to use the Uptodate task?

Yeah, that would do it.  Crud, I was scanning the tasks searching for
"modificationcheck" and "update" and such and I just must have overlooked it.

I am so smart, S-M-R-T, smart...

Thanks for the help,
jdr

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


Re: replaceregexp - Speed Issues

Posted by Jack Woehr <ja...@purematrix.com>.
Jordan Reed wrote:

> doesn't seem to care if the files have been regenerated or not since the last
> run,  so even if only one file has changed, all few thousand get reprocessed by
> all the expressions.
>
> Can anyone recommend a way of speeding this up?
>

Learning to use the Uptodate task?

--
Jack J. Woehr            # "[F]ar in the empty sky a solitary esophagus slept
http://www.well.com/~jax #  upon motionless wing; everywhere brooded stillness,
http://www.softwoehr.com #  serenity, and the peace of God." - Mark Twain




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