Sandor Spruit said:
Hi,
I'm working with Cocoon 2.1.x to create a web application. I'll need to
write some custom Actions and stuff, and would like to use some IDE for
debugging etc. Is there a specific reason for having an 'eclipse' target
in the Ant build configuration? Is there any reason to prefer NetBeans
over Eclipse or vice versa?
More people here use Eclipse, as far as I can see.
Run: build eclipse-project That'll create an Eclipse project file.
Then, fire up Eclipse. Create a new project, pointing its workspace to the Cocoon folder (not the webapp, the one containing build.bat).
Create another project that relates to your application, including the source for your actions, etc. Make that project dependent upon the Cocoon one.
For this new project, point the Eclipse compilation output to WEB-INF/classes, so that your changes will show after a JVM restart.
Run Cocoon with: cocoon servlet-debug
In eclipse, start a remote debugging session, connecting to localhost on the default port, for your project. Once connected, you'll be able to set breakpoints in your code.
Then, using a browser, request a page with http://localhost:8888/blah
If Cocoon hits a breakpoint in your code, Eclipse will catch it.
The rest is up to you.
Regards, Upayavira
BTW: I'm not interested in your typical 'my-IDE-is-better' debate!
Facts and arguments please :)
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
