Running Eclipse debugger with Ant build script

I

ianfeldberg

Has anyone been successful in running the Eclipse debugger from an Ant
build file?

Here's the situation: I import an Ant-based Java project using "Create
project from Ant build file". Ant looks up and down the project's file
structure and finds all the source files, external references, etc and
imports it into a new Eclipse Java project.

Then I put a breakpoint in one of the java files. Now, I right-click on
the "run" target in the build.xml file, and select "debug as". The
application runs but skips the breakpoint!

If I run the application by pulling down "Debug..." from the Run menu,
it stops at the breakpoint. The problem is that it is running Eclipse's
version of my Ant script, not the Ant script itself. And Eclipse's
version is not the same as mine - it misses properties, doesn't supply
the right arguments to java, and other bad stuff.

To make it run correctly, I have to almost totally recreate everything
in the build.xml in the Project->Properties window of Eclipse anyway.

Doesn't that kinda defeat the whole idea behind Eclipse importing the
Ant script? Am I doing something wrong?

- Ian
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top