You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Sandor Spruit <sa...@cs.uu.nl> on 2004/06/10 12:11:11 UTC
Experience with using an IDE to develop/debug Cocoon stuff??
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?
BTW: I'm not interested in your typical 'my-IDE-is-better' debate!
Facts and arguments please :)
Cheers,
Sandor
-----------------------------------------------------------------------
NEW! international master programme 'Content and Knowledge Engineering'
see: http://www.informationscience.nl/
My personal coordinates: http://www.cs.uu.nl/people/sandor/
"Our minds are harnessed by knowledge, by the hill and the will
to succeed". From: Fish, "Vigil in a wilderness of mirrors"
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Experience with using an IDE to develop/debug Cocoon stuff??
Posted by Sandor Spruit <sa...@cs.uu.nl>.
Hi again,
OK. All of this mostly works like a charm. Thanks! I'm impressed with
the progress in Java tools.
Haven't looked at this sort of stuff for a while.
One issue remains:
You say the compilation output for my own project, depending on Cocoon,
should be 'WEB-INF\classes' .
I assume you mean 'WEB-INF\classes' beneath the Cocoon build directory?
But this can't be set, because this output directory would overlap with
the Cocoon project workspace.
Eventually, I'll have to merge the Cocoon stuff with my project. How can
this be done if output directories
cannot be overlapping?? Somehow the two are interfering with each other....
I'd appreciate your help with this final question :)
Cheers,
Sandor
Upayavira wrote:
>
>> 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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Experience with using an IDE to develop/debug Cocoon stuff??
Posted by Upayavira <uv...@upaya.co.uk>.
>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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Experience with using an IDE to develop/debug Cocoon stuff??
Posted by Joerg Heinicke <jo...@gmx.de>.
On 10.06.2004 16:58, Ralph Goers wrote:
> Well, I use IntelliJ (at the moment) but I'd assume that NetBeans and
> Eclipse will both let you do remote debugging of a webapp.
And with all three it's extremely easy, no reason for switching the IDE
on that.
> I have extended Cocoon's SitemapComponentTestCase to support additional
> components such as input modules and selectors. I then unit test my
> components to death before using them. That and logging reduces the need
> to actually have to debug the component.
I do it exactly the other way around ;-)
> Someone else will have to discuss the reason for the eclipse target.
The eclipse target is just for creating the eclipse .project and
.classpath files as there would be very much work to do for setting up a
Cocoon project in eclipse. The same can be done for NetBeans or
IntelliJ if someone wants it and provides a patch.
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Experience with using an IDE to develop/debug Cocoon stuff??
Posted by Ralph Goers <Ra...@dslextreme.com>.
Well, I use IntelliJ (at the moment) but I'd assume that NetBeans and
Eclipse will both let you do remote debugging of a webapp.
I have extended Cocoon's SitemapComponentTestCase to support additional
components such as input modules and selectors. I then unit test my
components to death before using them. That and logging reduces the need
to actually have to debug the component.
Someone else will have to discuss the reason for the eclipse target.
Ralph
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?
>
> BTW: I'm not interested in your typical 'my-IDE-is-better' debate!
> Facts and arguments please :)
>
> Cheers,
> Sandor
>
> -----------------------------------------------------------------------
> NEW! international master programme 'Content and Knowledge Engineering'
> see: http://www.informationscience.nl/
> My personal coordinates: http://www.cs.uu.nl/people/sandor/
>
> "Our minds are harnessed by knowledge, by the hill and the will
> to succeed". From: Fish, "Vigil in a wilderness of mirrors"
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org