How to set a property in ant if another property start with a specific charcter?


April 2019


11 time


I am new to ant I am currently rewriting a stuff which was written in groovy. I have a scenario where i want to set a property if some other property start with a charter c

  if(version.startsWith('c')) {
            test_version = version.substring(1)
test_version =version

I tried with conditional property but it seems I lost the way Any pointer on this will be helpful

0 answers