Khushwinder wrote: > Hello All, > > ... > > > > casesensitive="true"> > > > .js > > > > > But it is also replacing the jsp file with build number because the > replacetoken value is like .js. > I want that it should only replace .js files not the .jsp. > Can anyone help me in this case. > > Thanks and rgds > I use the optional "replaceregexp" tag for this (instead of "replace"). If you aren't handy with regular expressions and don't have a reference at hand, you can use http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html . I haven't used this in a while, so I checked build files where I've used it, and I see that I typed the tag as "replaceregex" whereas the manual calls it "replaceregexp". I guess the proper name is "replaceregexp" but that it recognizes the alternative spelling "replaceregex". --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org