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

Refresh

April 2019

Views

11 time

1

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)
        }
else
{
test_version =version
}

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

0 answers