-
1. Re: Can you post a hello world example?
dsicore Aug 8, 2006 9:27 AM (in response to hcunningham)This is definitely needed.
Adam, we need a simple installation proceedure documented, preferrably a single script that actually does it, that does the following:
1) Shows how to configure shotoku completely.
2) Does a 'maven all' to deploy the now configured Shotoku instance.
3) Show's where to access the Hello World via a web browser.
At a minimum, the default distro should have an equivalent to: "./configure && make install && ./startShotoku" type script that creates a simple repository, configures shotoku, and points the user to a web page. -
2. Re: Can you post a hello world example?
adamw Aug 9, 2006 6:43 PM (in response to hcunningham)Hello,
yes, I must admit that documentation is lacking behind. I think what I'll do tomorrow is write a simple configuration program and add a "cms template", because some configuration is done from there.
--
Cheers,
Adam -
3. Re: Can you post a hello world example?
adamw Aug 12, 2006 8:21 AM (in response to hcunningham)Hello,
Here are two wiki pages with some basic examples, I'll expand them overtime:
- http://labs.jboss.com/wiki/SvnCmExample (configuration)
- http://labs.jboss.com/wiki/BasicShotokuFunctions (using from code)
Can you tell me, what configuration are you using? Embedded or in an application server? And do you build from the latest source (from SVN), or download one of the releases?
--
Adam -
4. Re: Can you post a hello world example?
hcunningham Aug 14, 2006 6:59 AM (in response to hcunningham)Thanks.
> Can you tell me, what configuration are you using? Embedded or in an
> application server? And do you build from the latest source (from SVN), or
> download one of the releases?
Actually I just want to evaluate shotoku as a possible base for a semantic
information management system that we're developing with our GATE language analysis technology (http://gate.ac.uk/). We want to use SVN as a backend, so we're looking at tmate and wondering what shotoku adds on top. The problem at present is that it is quite hard to understand shotoku without reading the code, which we currently haven't allocated resources to do...
Best
Hamish
--
Dr. Hamish Cunningham
Senior Research Scientist
Department of Computer Science
University of Sheffield
Regent Court
211 Portobello St.
Sheffield S1 4DP
United Kingdom
http://www.dcs.shef.ac.uk/~hamish/ -
5. Re: Can you post a hello world example?
adamw Aug 18, 2006 10:10 AM (in response to hcunningham)Hello,
first of all, sorry for the delay, but I am having problems with my computer, which make it hard for me to work.
Basically, shotoku in its core part simplifies a lot access to the SVN repository (or any other content manager implementation you choose). The tmate library is good, but if you would like to use it in an application, you would most probably end up writing some kind of a wrapper. Here you simply get a node for a path, then read/ change content/ properties and so on.
I have written a simple application which demonstrates basic functions, you can look at it here:
http://anonsvn.labs.jboss.com/labs/shotoku/trunk/shotoku-example/src/java/org/jboss/shotoku/example/ExampleEmbedded.java
Now I'm going for a week for vacation, but when I come back I'll finish it, add some comments and make a stand-alone, ready to run demo.
Also, I've updated the javadocs to the "head" version, they are available here:
http://labs.jboss.com/file-access/default/members/shotoku/freezone/apidocs/index.html
If you have any questions, please write.
--
Adam