Gradle - JavaExec args issue

Hi ,

I am passing args =[wapp,’./bin/src-gen’,tree1.asPath,listXmlFiles,new_workouteditor_validation] to a JavaExec from gradle task.

ant.fileset(dir : ‘./conf/build/validation’, id: ‘input.files’)
ant.pathconvert(pathsep : “,”, refid: “input.files”, property: “xmlFiles”)
String listXmlFiles = ant.properties[“xmlFiles”]
listXmlFiles - is comma separated file paths,Its taking as a single parameter in Java code instead of getting splitted with comma in Java

Any one faced same issue ?
Please help to resolve this