In my Android project I have the following property set in my project.properties file
proguard.config=proguard.cfg
and I need a custom macro that will somehow set and unset this property.
How do I set unset this property using macro and regular expression? two things I am not clear on is how to set this to an empty property value. Would that be just proguard.config= or proguard.config=''
What would be the Macro for doing this?
<macrodef name="turn-on-proguard">
<sequential>
<replaceregexp file="./project.properties"
match='proguard.config="(.*)"'
replace='proguard.config=proguard.cfg'
byline="false">
</replaceregexp>
</sequential>
</macrodef>
<macrodef name="turn-off-proguard">
<sequential>
<replaceregexp file="./project.properties"
match='proguard.config="(.*)"'
replace='proguard.config='
byline="false">
</replaceregexp>
</sequential>
</macrodef>
Would this work? Update. turn-proguard-off does nothing.