Using SVN and Eclipse for Groovy development
Hello, 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. My idea is to use Ant as a deployment tool, with the Ant POST task for instance: http://antelope.tigris.org/nonav/docs/manual/bk03ch17.html 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. Best, François
Hi Francois, On Apr 5, 2007, at 10:21 AM, François Déchelle wrote:
Hello,
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 +Integration (of course anyone is welcome to collaborate on this project) 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?
My idea is to use Ant as a deployment tool, with the Ant POST task for instance: http://antelope.tigris.org/nonav/docs/manual/bk03ch17.html
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. Thanks -Vincent
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+Integratio...
(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
re-hello, François Déchelle a écrit :
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.
I'm currently writing this ant task to deploy xwiki pages from an ant build file, and I'm having trouble with the XML RPC API. I've tried both this: http://soal.xwiki.com/xwiki/bin/view/Code/XWikiXMLRpc and my own task that uses a different version of Apache XML-RPC client, and I got error HTTP 500 (internal server error) with both version. Any clue? François
On Apr 5, 2007, at 4:06 PM, François Déchelle wrote:
re-hello,
François Déchelle a écrit :
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.
I'm currently writing this ant task to deploy xwiki pages from an ant build file, and I'm having trouble with the XML RPC API. I've tried both this: http://soal.xwiki.com/xwiki/bin/view/Code/XWikiXMLRpc and my own task that uses a different version of Apache XML-RPC client, and I got error HTTP 500 (internal server error) with both version.
Any clue?
I haven't tried it yet myself so I can't really help you but I know several users are successful in using it. I don't want to point any finger at anyone but Christian here on this list seems to be quite successful with it ;-) Once someone knows how to get it to work, it would be nice to document it on http://www.xwiki.org/xwiki/bin/view/UserGuide/XMLRPC Thanks -Vincent
Vincent Massol a écrit :
On Apr 5, 2007, at 4:06 PM, François Déchelle wrote:
I'm currently writing this ant task to deploy xwiki pages from an ant build file, and I'm having trouble with the XML RPC API. I've tried both this: http://soal.xwiki.com/xwiki/bin/view/Code/XWikiXMLRpc and my own task that uses a different version of Apache XML-RPC client, and I got error HTTP 500 (internal server error) with both version.
Any clue?
I haven't tried it yet myself so I can't really help you but I know several users are successful in using it. I don't want to point any finger at anyone but Christian here on this list seems to be quite successful with it ;-)
Once someone knows how to get it to work, it would be nice to document it on http://www.xwiki.org/xwiki/bin/view/UserGuide/XMLRPC
Hello, (was off work) Thank you for the point. Christian, any suggestion about how to make Xwiki XML-RPC work? François
François Déchelle a écrit :
Vincent Massol a écrit :
On Apr 5, 2007, at 4:06 PM, François Déchelle wrote:
I'm currently writing this ant task to deploy xwiki pages from an ant build file, and I'm having trouble with the XML RPC API. I've tried both this: http://soal.xwiki.com/xwiki/bin/view/Code/XWikiXMLRpc and my own task that uses a different version of Apache XML-RPC client, and I got error HTTP 500 (internal server error) with both version.
Any clue?
I haven't tried it yet myself so I can't really help you but I know several users are successful in using it. I don't want to point any finger at anyone but Christian here on this list seems to be quite successful with it ;-)
Once someone knows how to get it to work, it would be nice to document it on http://www.xwiki.org/xwiki/bin/view/UserGuide/XMLRPC
Hello,
(was off work)
Thank you for the point.
Christian, any suggestion about how to make Xwiki XML-RPC work?
François
Got it! (well, almost...) In xwiki.log, I get the following when running my ant task: java.lang.ClassNotFoundException: com.xpn.xwiki.web.XMLRPCAction followed by a printStackTrace() I checked the .jar, it's true that there is no XMLRPCAction.class anywhere. I'm running 1.0beta6 françois
On Apr 16, 2007, at 4:29 PM, François Déchelle wrote:
François Déchelle a écrit :
Vincent Massol a écrit :
On Apr 5, 2007, at 4:06 PM, François Déchelle wrote:
I'm currently writing this ant task to deploy xwiki pages from an ant build file, and I'm having trouble with the XML RPC API. I've tried both this: http://soal.xwiki.com/xwiki/bin/view/Code/XWikiXMLRpc and my own task that uses a different version of Apache XML-RPC client, and I got error HTTP 500 (internal server error) with both version.
Any clue?
I haven't tried it yet myself so I can't really help you but I know several users are successful in using it. I don't want to point any finger at anyone but Christian here on this list seems to be quite successful with it ;-)
Once someone knows how to get it to work, it would be nice to document it on http://www.xwiki.org/xwiki/bin/view/UserGuide/XMLRPC
Hello, (was off work) Thank you for the point. Christian, any suggestion about how to make Xwiki XML-RPC work? François
Got it! (well, almost...)
In xwiki.log, I get the following when running my ant task: java.lang.ClassNotFoundException: com.xpn.xwiki.web.XMLRPCAction followed by a printStackTrace()
I checked the .jar, it's true that there is no XMLRPCAction.class anywhere.
Sounds like a bug to me. I see this class is defined in struts- config.xml but as you said there's no corresponding Java class. Do you mind filing a JIRA issue? Thanks -Vincent
Vincent Massol a écrit :
On Apr 16, 2007, at 4:29 PM, François Déchelle wrote:
François Déchelle a écrit :
Vincent Massol a écrit :
On Apr 5, 2007, at 4:06 PM, François Déchelle wrote:
I'm currently writing this ant task to deploy xwiki pages from an ant build file, and I'm having trouble with the XML RPC API. I've tried both this: http://soal.xwiki.com/xwiki/bin/view/Code/XWikiXMLRpc and my own task that uses a different version of Apache XML-RPC client, and I got error HTTP 500 (internal server error) with both version.
Any clue?
I haven't tried it yet myself so I can't really help you but I know several users are successful in using it. I don't want to point any finger at anyone but Christian here on this list seems to be quite successful with it ;-)
Once someone knows how to get it to work, it would be nice to document it on http://www.xwiki.org/xwiki/bin/view/UserGuide/XMLRPC
Hello, (was off work) Thank you for the point. Christian, any suggestion about how to make Xwiki XML-RPC work? François
Got it! (well, almost...)
In xwiki.log, I get the following when running my ant task: java.lang.ClassNotFoundException: com.xpn.xwiki.web.XMLRPCAction followed by a printStackTrace()
I checked the .jar, it's true that there is no XMLRPCAction.class anywhere.
Sounds like a bug to me. I see this class is defined in struts-config.xml but as you said there's no corresponding Java class.
Do you mind filing a JIRA issue?
Thanks -Vincent
No I don't mind ;-) here it is: http://jira.xwiki.org/jira/browse/XWIKI-1094 François
participants (2)
-
François Déchelle -
Vincent Massol