Hi,
On Wed, May 14, 2008 at 5:57 PM, Kamna Jain <kammy.scorpi(a)gmail.com> wrote:
Hello Devs,
This is regarding the SVN integration with XWiki, about which I had been
asking a lot of questions in the past.
So, now we have an applet that helps users browse throught their filesystema
nd upload multiple files with in click.
the uploaded files are commited to SVN. Also, these files are associated
with XWiki objects we created.
The next step is, checking out of SVN.
The scenario is that the user selects a folder on his local system(working
copy) and hits a button that should initiate the ceckout/update from sVN for
all the objects that are on that XWiki page.
What is the best way to achieve this:
1) Is it possible through Velocity (I am sure not...right?)
2) If I write a JAVA class to do the SVNcheckout, how do I integrate it with
XWiki (without messing with the XWiki core...or is that the only way to
accomplish this)
You could write a JAVA XWiki plugin callable from Velocity. See
http://platform.xwiki.org/xwiki/bin/view/DevGuide/CreatingPlugins
3) Write a servlet and use teh macro
includeServlet...If yes, then how is
this doen..I am not evry sure what are the steps to follow to this.
4) any other method?
I think you can do that using Groovy which does not have all Velocity
restrictions (but need "programming" rights to be executed). See
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting#HXWiki27sGroovy…
Any help will be great..
Thanks for all help
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Thomas Mortagne