groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul King <>
Subject Fwd: Calling Ant target “collect” from Groovy
Date Thu, 22 Sep 2016 10:18:18 GMT
Forwarding your question to the users list since it is about using Groovy.

Cheers, Paul.

---------- Forwarded message ----------
From: ganna_bc <>
Date: Thu, Sep 22, 2016 at 7:51 PM
Subject: Calling Ant target “collect” from Groovy

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" />

Groovy script is :

Project project1=new Project()
ProjectHelper projectHelper1=new ProjectHelper()

The problem is that how can I use the dir="${eclipse_home}" in groovy ?

View this message in context:
Sent from the Groovy Dev mailing list archive at

View raw message