Hi Vincent,
Vincent Massol a écrit :
Hi Francois,
Following the recent discussion on using SVN as a
backend for Xwiki,
I'd like to discuss something symetrical, i.e. to use SVN and Eclipse
as a front-end. The idea is to write Xwiki pages containing Groovy
code in Eclipse (or Emacs), store it in SVN and deploy it
automatically on an Xwiki.
Yes, this is an excellent idea. We have created a GSoc project for this
here:
http://www.xwiki.org/xwiki/bin/view/GoogleSummerOfCode/IDE+Editor+Integrati…
(of course anyone is welcome to collaborate on this project)
If I can be of any help, I'd be happy to.
What I'm not sure though is why would we need SVN
for this? My idea was
to use the XWiki XML RPC API to send data to the XWiki server.
WDYT?
That's true, SVN is on the side, it's just an optional choice if you
want to store your code. It is not used in the path [IDE/Editor] ->
[Xwiki server].
I have not thought of using Xwiki XML RPC API, but it's a better choice
than using HTTP POST request, you're right. I think that integrating it
into ant should not be that difficult. May be having specific ant tasks
for Xwiki would be usefull.
This way, the
project can be easily integrated into Eclipse. I'm
wondering how the Groovy Eclipse plug-in can be used:
http://groovy.codehaus.org/Eclipse+Plugin
My guess is that the editing part can be usefull, but that running
Groovy inside Eclipse wont do it for now.
I think it's pretty easy to benefit from auto complete and syntax
coloring and that's already quite good.
Yes, that's already something cool. No refactoring yet, but may be one
day ;-)
François