A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide
this week in the
Ant, Maven and Other Build Tools
Case sensitive Issue when using Ant Replace task
Joined: Nov 07, 2007
Apr 11, 2009 06:06:51
I want to rename the content of some files (by replacing a
with another) of a specific type (.htm) in a directory including all subdirectories.
Running an "Ant replace task" will do the work:
<replace dir="mydir" token="one" value="two">
This works fine, however I want the replace to be NON-casesensitive, so that e.g. 'ONE' is also replaced by 'two'.
How do I do that?
author & internet detective
Joined: May 26, 2003
Apr 11, 2009 07:45:42
The optional task
allows you to specify any regular expression including non-case sensitivity. All the optional tasks require an extra jar in the classpath, so check the documentation before calling it.
OCA 8 book
How To Ask Questions The Smart Way
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
I agree. Here's the link:
subject: Case sensitive Issue when using Ant Replace task
append a batch file
How to convert java task to junit task to run a java class file
Ant replace task problem
"Could not create task of type: echo"
Custom ANT Task not working in <for> loop
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015