ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Amerige <>
Subject Eclipse Debugging: Ant and Groovy
Date Wed, 25 Jan 2012 22:49:45 GMT
Hi all,

I have two files: *build.xml *and *doit.groovy *as shown below.  In Eclipse (Helios 3.6.2)
with Groovy-Eclipse plugins 
(2.6.1.xx.02120118-1300-e36-M1), I have a breakpoint set on the *println *in the *doit.groovy*.
 I do:

     build.xml > Debug As > Ant Build

But, the breakpoint is never hit and execution completes without stopping.  Can anyone figure
out how to get Eclipse to stop at the 
breakpoint in the groovy code?

By the way, I did read:

to try to debug scriptdef (groovy) code, but the above doesn't work.

Steve Amerige
SAS Institute, Deployment Software Development


    <?xml version="1.0" encoding="UTF-8"?>

    <project name="testTemplate" default="main" basedir=".">
    <taskdef resource="net/sf/antcontrib/antlib.xml"/>
    <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy"/>

    <target name="main">
    <echo message="inside antdoit"/>

    <macrodef name="antdoit">
    <element name="body" implicit="true"/>

    <scriptdef name="antdoit-internal" id="doit" language="groovy" src="doit.groovy">
    <element name="sequential" classname=""/>




    def groovydoit()
         Task body = (Task) elements.get("sequential").get(0)
         println body.dump() // breakpoint set here

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message