I am looking for possible solution,how to replace specific String in my Android.manifest
Currently I am using task:
<replaceregexp flags="g" byline="false">
<regexp pattern=""com.package.Something""/>
<substitution expression=""com.package.Extra.Something""/>
<fileset dir="" includes="AndroidManifest.xml"/>
</replaceregexp>
All I need is to change every occurence of com.package to com.package.Extra, nevertheless what is before or after this statement. Up to now, this task replace occurence of com.package.Something by com.package.Extra.Something, but if I have in my manifest statement com.package (= without Sometning), is is not transfered. How to do that in code, that I want dynamically change only specified string and nothing more? It should by something like “If there is com.package, use com.package.Something instead and leave everything around exactly as it was before”
Hope you understand
Thanks
Solution – use task < replace > as:
com.packageis replaced bycom.package.Extra