Hi All,
 
More or less got this to work.  It seems the groovy library is contained in the same JAR folder as everything else, so just stick in the Scriptom JAR files into the default xwiki "\WEB-INF\lib" folder (this does not include the jacob.dll file).
The jacob.dll file seems happy enough if placed under the relevant java bin folder (checking tomcat's settings will help determine the correct one if you're using tomcat).
 
Using this, I did a simple test using the following groovy script (note - just proving concept, it's nasty and cheap but shows that we can use scriptom with the above config using xwiki's groovy libraries on the server):
<%
import org.codehaus.groovy.scriptom.ActiveXProxy
def nett = new ActiveXProxy('WScript.Network')
println "Groovy Works, the server name is: ${nett.ComputerName.value}"
%>
 
You should get a page with "Groovy Works, the server name is: <server name of xwiki server here>"
 
Raises the quest, shouldn't these 3rd party libraries be located in a seperate subdirectory (even under the main xwiki lib directory, eg lib/groovy)?  That way it would be simpler to update, eg velocity or groovy versions - and would be easier to customise the same.

From: Esbach, Brandon [mailto:Esbachb@tycoelectronics.com]
Sent: 22 March 2007 16:18
To: xwiki-users@objectweb.org
Subject: RE: [xwiki-users] Adding Groovy add-ons..

Hi David,
 
Funny enough, one of the things I'm intending to do is the reverse of your own problem: to bring in data from applications such as Excel Word, and other applications (most likely using my own app for the proprietary data we have floating around still).
This is just a guess, so don't take as gospel:
I think, given than the Scriptom features allow you to talk to almost any com server (examples in the groovy book talk about excel and word, so that's -almost- a given); you should be able to create something to do what you want, in a less manual fashion.
 
 

From: Weiler-Thiessen,David,SASKATOON,Engineering [mailto:David.WeilerThiessen@purina.nestle.com]
Sent: 22 March 2007 15:40
To: xwiki-users@objectweb.org
Subject: RE: [xwiki-users] Adding Groovy add-ons..

Hi Brandon
 
What are you planning to do with Scriptom/Jacob?  I haven't tried yet - but was wondering if it would be a good/better way of getting Wiki content into MS Word.
 
I work in a software development shop - and management is leery of keeping long lived important information on our Wiki.  They would prefer to move stuff out into Word.  We have looked at some translator tools - but nothing suits us.  So far we have just done clumsy copy/paste.  Would be better if we could get an automated solution that worked for us.
 

David Weiler-Thiessen
Nestlé Purina PetCare
phone: 306-933-0232
cell: 306-291-9770

This e-mail, its electronic document attachments, and the contents of its website linkages may contain confidential information.  This information is intended solely for use by the individual or entity to whom it is addressed.  If you have received this information in error, please notify the sender immediately and promptly destroy the material and any accompanying attachments from your system.

 


From: Esbach, Brandon [mailto:Esbachb@tycoelectronics.com]
Sent: Thursday, March 22, 2007 7:34 AM
To: xwiki-users@objectweb.org
Subject: [xwiki-users] Adding Groovy add-ons..

Hi folks,

Looking at applying some of the add-ons to Groovy to allow some extra functionality (most likely starting with Scriptom/JACob).  I have some questions though:

1) As I understand it, there are some tightened security changes for XWikiBeta5 and above (not running in our test environment yet).   How will this affect Xwiki going forward (eg, will this be restricted in some way from xwiki in future)?

2) Where is the standard Groovy library path for xwiki (doesn't seem to be any groovy folders under the xwiki application)?