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