Ok.
So I followed all steps but, as expected (for any first time effort) it did
not work :(

Following are the steps I followed:

1) Created the plugin. The plugin's path is rock.xwiki.plugin.svnsynchronize

It has 3 files - the Plugin, PluginApi and one more class which is called in
one of the methods of the PluginApi class.

2) It compiled without errors in Eclipse so, I created the .class file and
placed them in the
\tomcat_v5.5.26\webapps\xwiki\WEB-INF\classes\rock\xwiki\plugin\svnsynchronize
folder.
(now this folder is also in svn so it also has the .svn folder in it...hope
that is not interfering with my plugin)

3) added the following in xwiki.cfg
com.xpn.xwiki.plugin.watchlist.WatchListPlugin,\
                    rock.xwiki.plugin.svnsynchronize.SVNSynchronizePlugin

4) restarted the xwiki browser and tried the following code:
## Trying SVNSyncronize Plugin
#set($svnApi = $xwiki.svnsynchronize)
#set($mesg=$svnApi.hello())
The message is $mesg

RESULT:  $svnApi.hello()   :((  (hello() is the same as provided in the
example)

5) I also created  a.jar of the 3 plugin classes from Eclipse.
The jar contains a META-INF>MANIFEST.MF
and  rock\xwiki\plugin\svnsynchronize\3 classes

Added it to the lib folder  -  \tomcat_v5.5.26\webapps\xwiki\WEB-INF\lib

tried the code again..but does not work yet.

What am I missing .... any step gone wrong...anything else need to be taken
care of.

xwiki version used:  1.3.2.9174

PLEASE help...

Thanks for all help!




On 5/14/08, Kamna Jain <[EMAIL PROTECTED]> wrote:
>
> Thanks Thomas. That was a great solution. I have started working on it but
> don't know if it works yet.
> but, I had one question about "Creating Xwiki Plugins"
> In the final step of adding the "classes" to the webapps folder, do the
> classes refer to .class files or just .java files. I am assuming .class
> because the alternative is to add the .jar to the lib folder.
>
> It would be great if you could confirm this.
>
> Thanks again
>
>
>  On Wed, May 14, 2008 at 10:57 AM, Kamna Jain <[EMAIL PROTECTED]>
> 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)
>> 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?
>>
>> Any help will be great..
>>
>> Thanks for all help
>>
>
>
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to