I know it sounds easy therefore I wish someone has done it. My scenario would be: - first a checkout, creates a bunch of xml files of the selected files and spaces - for some of the xml files, "extract text and save aside with proper extension" - edit happily with IDE tools - update because others have worked, that merges (that's probably the hardest) - edit happily with IDE tools - commit to xwiki (for these spaces and files), the ant tool would first make an xml file with the revised source thanks for the pointers at least. paul Le 11-nov.-08 à 09:46, Vincent Massol a écrit :
On Nov 11, 2008, at 9:44 AM, Eduard Moraru wrote:
Hi Paul!
You could easily make such a tool by using the available XML-RPC API.
That would be easy except for the object/class editor I think.
-Vincent
Just use these the jars in the org.xwiki.eclipse.xmlrpc package from XEclipse ( http://svn.xwiki.org/svnroot/xwiki/xeclipse/trunk/plugins/org.xwiki.eclipse.... ).
For an example of using the XML-RPC API, you could look at the RemoteXWikiDataStorage.java file at http://svn.xwiki.org/svnroot/xwiki/xeclipse/trunk/plugins/org.xwiki.eclipse....
Of course, you do have the http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPC link which you should check out, but I think that if you are already a bit familiar with XEclipse, you might find that the Java file I specified offers more specific examples of handling content.
Let us know how it turns out. :)
Paul Libbrecht wrote:
Hello fellow developers,
The usage of a bunch of command-line tools for checking-out the (XML of) xwiki pages and checking them in would be really useful.
The xar approach is not really practical: there's no merge, it's problematic when it gets big, and it still doesn't have a command- line to integrate within a build-flow.
I am convinced it would be easy, for example, to use the XEclipse code to make checkout, update, and checkin ant-tasks or command-line tools.
Did anyone try?
thanks in advance
paul
devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs