LPS-46876 Use Groovy variable names instead of Ant property references within the for loop to avoid incorrect values