Debugging ANT build scripts

Discussion in 'Java' started by illusions, Dec 16, 2004.

  1. illusions

    illusions Guest

    Hello,
    I would like to know about the debugging capabilities of ANT. Basically
    I have an ANT build script written by a colleague and I wanted to step
    through each target to see what are the various tasks that are beings
    called. I tried using the -debug option but that output a whole lot of
    information without any pause. Could you suggest any other better
    method of debugging.
    Thaks,
    Swathi
    illusions, Dec 16, 2004
    #1
    1. Advertising

  2. illusions wrote:
    > Hello,
    > I would like to know about the debugging capabilities of ANT. Basically
    > I have an ANT build script written by a colleague and I wanted to step
    > through each target to see what are the various tasks that are beings
    > called. I tried using the -debug option but that output a whole lot of
    > information without any pause. Could you suggest any other better
    > method of debugging.
    > Thaks,
    > Swathi
    >


    You could write a custom task that outputted some text to the console
    and insert your task inside of each target with an appropriate message.
    Collin VanDyck, Dec 16, 2004
    #2
    1. Advertising

  3. illusions

    bugbear Guest

    illusions wrote:
    > Hello,
    > I would like to know about the debugging capabilities of ANT. Basically
    > I have an ANT build script written by a colleague and I wanted to step
    > through each target to see what are the various tasks that are beings
    > called. I tried using the -debug option but that output a whole lot of
    > information without any pause. Could you suggest any other better
    > method of debugging.


    If you capture the output of -debug, it's (moderately)
    readable in a decent editor.

    Trying to eyeball it as it flys past is futile.

    BugBear
    bugbear, Dec 17, 2004
    #3
  4. "illusions" <> wrote in news:1103206030.524160.38680
    @f14g2000cwb.googlegroups.com:

    >
    > Hello,
    > I would like to know about the debugging capabilities of ANT. Basically
    > I have an ANT build script written by a colleague and I wanted to step
    > through each target to see what are the various tasks that are beings
    > called. I tried using the -debug option but that output a whole lot of
    > information without any pause. Could you suggest any other better
    > method of debugging.
    > Thaks,
    > Swathi
    >


    The latest "stream stable build" of Eclipse (3.1M4) released yesterday
    claims to have an "ant debugger". I haven't tried it yet.

    <http://eclipse.org>

    Chas Douglass
    Chas Douglass, Dec 18, 2004
    #4
  5. illusions

    Bill Joy Guest

    JBuilder has a debugger for ANT scripts that lets you set breakpoints and
    see/change the value of variables.

    Here is a link to a downloadable demo using Shockwave on the Borland
    Developer Network site:

    http://bdn.borland.com/article/0,1410,32863,00.html


    "illusions" <> wrote in message
    news:...
    >
    > Hello,
    > I would like to know about the debugging capabilities of ANT. Basically
    > I have an ANT build script written by a colleague and I wanted to step
    > through each target to see what are the various tasks that are beings
    > called. I tried using the -debug option but that output a whole lot of
    > information without any pause. Could you suggest any other better
    > method of debugging.
    > Thaks,
    > Swathi
    >
    Bill Joy, Dec 18, 2004
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris Bedford
    Replies:
    6
    Views:
    2,211
  2. Harald Kirsch

    debugging ant build files

    Harald Kirsch, Dec 11, 2003, in forum: Java
    Replies:
    1
    Views:
    12,206
  3. john martin
    Replies:
    2
    Views:
    2,202
    john martin
    Apr 7, 2005
  4. Axel Bock
    Replies:
    1
    Views:
    2,174
    Thomas Fritsch
    May 10, 2006
  5. Replies:
    0
    Views:
    2,080
Loading...

Share This Page