ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: regexpreplace help...
Date Mon, 15 Aug 2005 12:47:45 GMT


>-----Urspr√ľngliche Nachricht-----
>Von: Mark Lybarger [] 
>Gesendet: Montag, 15. August 2005 14:25
>An: Ant Users List
>Betreff: regexpreplace help...
>I'm not much of a regex person, and maybe there's an easier 
>way to accomplish this.
>I've got an apache config file for using url rewriting. The 
>rewrite rules look something like:
>RewriteRule ^/apps/MyApp/(.*)? /MyApp/1.0.62/a/$1 [R] 
>RewriteRule ^/apps/MyNextApp/(.*)? /MyNextApp/1.0.62/a/$1 [R] 
>RewriteRule ^/apps/MyNextOtherApp/(.*)? /MyNextOtherApp/1.0.62/a/$1 [R]
>basically, the 1.0.62 is a version number that gets bumped 
>when ever we want to release a new version. this allows the 
>client to cache the web content indefinately, and never even 
>check, with the server for a new version. what i need to do is 
>to do a search and replace on this file finding the 1.0.62, 
>and replacing it with 1.0.63. rather simple in a text editor, 
>maybe someone else has done something similar with ant?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message