[xwiki-devs] Downloading from SVN repository..
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
Hi, On Wed, May 14, 2008 at 5:57 PM, 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)
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#HXWiki27sGroovyA...
Any help will be great..
Thanks for all help _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
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
On Thu, May 15, 2008 at 5:12 AM, 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.
If you're refering to http://tinyurl.com/68zues yes, it refers to .class files. -- Jean-Vincent Drean
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
Hi all, Since a few day the whole xwiki compilation failed with the below message. Do need to do some else than "svn update" ? and "mvn install" ? Fabien [ERROR] Maven encountered an error while loading a plugin for use in your build. Plugin: Group-Id: org.codehaus.mojo Artifact-Id: xml-maven-plugin Version: null Referenced mojo: xml-maven-plugin brought in via: null While building project: Group-Id: com.xpn.xwiki.platform.applications Artifact-Id: xwiki-application-application-manager Version: 1.3-SNAPSHOT
From file: /home/fbataill/workspace/xwiki/trunks/xwiki-platform-applications/application-manager/pom.xml
Error message:Failed to load plugin. Reason: The plugin 'org.codehaus.mojo:xml-maven-plugin' does not exist or no valid version could be found Root error message:The plugin 'org.codehaus.mojo:xml-maven-plugin' does not exist or no valid version could be found
Hi, It's working for me. According to your error it seems you are unable to download maven xml plugin, maybe you have a connection problem... On Thu, May 15, 2008 at 8:41 AM, Fabien <[email protected]> wrote:
Hi all,
Since a few day the whole xwiki compilation failed with the below message. Do need to do some else than "svn update" ? and "mvn install" ?
Fabien
[ERROR]
Maven encountered an error while loading a plugin for use in your build.
Plugin: Group-Id: org.codehaus.mojo Artifact-Id: xml-maven-plugin Version: null Referenced mojo: xml-maven-plugin brought in via: null
While building project: Group-Id: com.xpn.xwiki.platform.applications Artifact-Id: xwiki-application-application-manager Version: 1.3-SNAPSHOT From file: /home/fbataill/workspace/xwiki/trunks/xwiki-platform-applications/application-manager/pom.xml
Error message:Failed to load plugin. Reason: The plugin 'org.codehaus.mojo:xml-maven-plugin' does not exist or no valid version could be found Root error message:The plugin 'org.codehaus.mojo:xml-maven-plugin' does not exist or no valid version could be found _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
Strange all others maven download works fine. Did you tried a mvn clean before testing it from your side ? On Thu, May 15, 2008 at 12:02 PM, Thomas Mortagne <[email protected]> wrote:
Hi,
It's working for me. According to your error it seems you are unable to download maven xml plugin, maybe you have a connection problem...
On Thu, May 15, 2008 at 8:41 AM, Fabien <[email protected]> wrote:
Hi all,
Since a few day the whole xwiki compilation failed with the below message. Do need to do some else than "svn update" ? and "mvn install" ?
Fabien
[ERROR]
Maven encountered an error while loading a plugin for use in your build.
Plugin: Group-Id: org.codehaus.mojo Artifact-Id: xml-maven-plugin Version: null Referenced mojo: xml-maven-plugin brought in via: null
While building project: Group-Id: com.xpn.xwiki.platform.applications Artifact-Id: xwiki-application-application-manager Version: 1.3-SNAPSHOT From file:
/home/fbataill/workspace/xwiki/trunks/xwiki-platform-applications/application-manager/pom.xml
Error message:Failed to load plugin. Reason: The plugin 'org.codehaus.mojo:xml-maven-plugin' does not exist or no valid version could be found Root error message:The plugin 'org.codehaus.mojo:xml-maven-plugin' does
not
exist or no valid version could be found _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
On Thu, May 15, 2008 at 4:49 PM, Fabien <[email protected]> wrote:
Strange all others maven download works fine.
Did you tried a mvn clean before testing it from your side ?
I removed the plugin from my local maven repository and it correctly downloaded it.
On Thu, May 15, 2008 at 12:02 PM, Thomas Mortagne <[email protected]> wrote:
Hi,
It's working for me. According to your error it seems you are unable to download maven xml plugin, maybe you have a connection problem...
On Thu, May 15, 2008 at 8:41 AM, Fabien <[email protected]> wrote:
Hi all,
Since a few day the whole xwiki compilation failed with the below message. Do need to do some else than "svn update" ? and "mvn install" ?
Fabien
[ERROR]
Maven encountered an error while loading a plugin for use in your build.
Plugin: Group-Id: org.codehaus.mojo Artifact-Id: xml-maven-plugin Version: null Referenced mojo: xml-maven-plugin brought in via: null
While building project: Group-Id: com.xpn.xwiki.platform.applications Artifact-Id: xwiki-application-application-manager Version: 1.3-SNAPSHOT From file:
/home/fbataill/workspace/xwiki/trunks/xwiki-platform-applications/application-manager/pom.xml
Error message:Failed to load plugin. Reason: The plugin 'org.codehaus.mojo:xml-maven-plugin' does not exist or no valid version could be found Root error message:The plugin 'org.codehaus.mojo:xml-maven-plugin' does
not
exist or no valid version could be found _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
participants (4)
-
Fabien -
Jean-Vincent Drean -
Kamna Jain -
Thomas Mortagne