aspose file tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Debug java web application using ant Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Debug java web application using ant" Watch "Debug java web application using ant" New topic
Author

Debug java web application using ant

shabarish vai
Ranch Hand

Joined: May 26, 2008
Posts: 79
hi all,

am using ant scripts.my build.xml is in D:\ant my build.xml is at "D"drive , build.xml file handles everything like compling java files creating war,sar ets files and finally will put it into deploy folder of j-boss. now how do i debug it.
Please help. Am using eclipse only as editor.Please help me how to debug the java files by puting break points
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 12513

You need to connect Eclipse to JBoss as a remote debug session. You then set Breakpoints on your edited code in Eclipse.

Ant doesn't really have much to do with any of this, beyond the actual build process. I recommend using the IDEs forum for further information.


One of the most odious afflictions that Business has inflicted on the modern English language is "pro-active". Most of the time it's simply redundantly used in place of the simple old word "active". And a good deal of the rest of the time it means "You're not overworked enough yet, so go out and find more!"
shabarish vai
Ranch Hand

Joined: May 26, 2008
Posts: 79
hi Tim Holloway ,

thanks for the reply , but how to connect Eclipse to JBoss as a remote debug session
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 4875

Look in the run.bat for JBoss AS - there is a comment on which line to uncomment to enable you to attach a remote debugger. Then read about remote debugging in the Eclipse help text.


JBoss In Action
 
 
subject: Debug java web application using ant
 
Threads others viewed
Ant Build fails in eclipse
ant + scp
Help in Ant
ANT classpath
import the java project using ANT in eclipse
developer file tools