Stephen Schaub wrote:
The reason I'm interested is because I'm
interested in doing XWiki
development with Eclipse. I think it would be quicker and simpler to set up
Eclipse to develop XWiki with Jetty / HSQL than as a traditional web app
with Tomcat and PHP. Can anyone provide some pointers?
I setup xwiki within eclipse using the WebToolsProject (
http://eclipse.org/webtools/index.html - read
http://simplygenius.com/geekblog/2005/04/08/1112982083849.html if you
haven't installed it yet).
It was a PITA to get working correctly, but now that it is setup, its
relatively easy to run/debug xwiki within eclipse - just RC xwiki and
Run/DebugAs -> Run/Debug on server. Simple java changes get hot
deployed into debuggee too. If you configure hibernate to use HSQL,
then everything should run in process when WTP launches the tomcat (or
jetty?) instance.
I've attached the dotfiles I used to make this happen - you may need to
tweak them slightly, but they should work out of the box is your eclipse
project checked out from svn is named "xwiki", and your tomcat instance
is named the same as I have in the .runtime file (RC xwiki,
Properties->Server). I'm currently using WTP 0.7RC3, so you'll need
something close to that version to get it to work. One issue to keep in
mind - currently WTP creates a war directory structure in the
.deployables directory, thus when you change a file it doesn't get
copied over unless you build, however, if incremental build is on
(default), this happens automatically.
Hope this helps,
Matt