I am trying to replace run our test suite with Jenkins pipeline, during this for the old ant file we are writing Groovy script where for the Ant target "collect" how can I replace it with the Groovy script.
I tried below code : <ant target="collect" antfile="${library-file}" dir="${eclipse-home}"> <property name="includes" value="com*.xml" /> <property name="output-file" value="test-results.xml" /> </ant> Groovy script is : Project project1=new Project() project1.init() project1.initProperties() project1.setProperty("includes","com*.xml") project1.setProperty("output-file","test-results.xml") ProjectHelper projectHelper1=new ProjectHelper() projectHelper1.parse(project1,antFile) project1.executeTarget("collect") The problem is that how can I use the dir="${eclipse_home}" in groovy ? -- View this message in context: http://groovy.329449.n5.nabble.com/Calling-Ant-target-collect-from-Groovy-tp5735572.html Sent from the Groovy Dev mailing list archive at Nabble.com.