The scripts have been tested on Windows with cygwin..
Other cases might need changes to the scripts probably in env.sh
Ludovic
CeDeROM wrote:
  Hi!
  I've posted our import/export scripts on
      
  This should allow to load the default xwiki
database in any xwiki
      
  compatible database.
      
  Let me know how it works.
      
 i have problems:
 suse93:/usr/share/tomcat5/webapps/xwiki/backup # ./env.sh
 Caught: General error during class generation: No such class:
 XWikiContext in constructor call for class: xwiki.export.import. At
 [7:11] /srv/www/tomcat5/base/webapps/xwiki/backup/import.groovy
 groovy.lang.MissingClassException: No such class: XWikiContext in
 constructor call for class: xwiki.export.import. At [7:11] /srv/www/
 tomcat5/base/webapps/xwiki/backup/import.groovy
         at org.codehaus.groovy.classgen.AsmClassGenerator.
 checkValidType(AsmClassGenerator.java:4825)
         at org.codehaus.groovy.classgen.AsmClassGenerator.
 visitConstructorCallExpression(AsmClassGenerator.java:2319)
         at org.codehaus.groovy.ast.expr.ConstructorCallExpression.
 visit(ConstructorCallExpression.java:91)
         at org.codehaus.groovy.classgen.AsmClassGenerator.
 visitAndAutoboxBoolean(AsmClassGenerator.java:4236)
         at org.codehaus.groovy.classgen.AsmClassGenerator.
 evaluateEqual(AsmClassGenerator.java:4087)
         at org.codehaus.groovy.classgen.AsmClassGenerator.
 visitBinaryExpression(AsmClassGenerator.java:1145)
         at org.codehaus.groovy.ast.expr.BinaryExpression.
 visit(BinaryExpression.java:343)
         at org.codehaus.groovy.classgen.AsmClassGenerator.
 visitAndAutoboxBoolean(AsmClassGenerator.java:4236)
         at org.codehaus.groovy.classgen.AsmClassGenerator.
 visitExpressionStatement(AsmClassGenerator.java:1131)
         at org.codehaus.groovy.ast.stmt.ExpressionStatement.
 visit(ExpressionStatement.java:70)
         at org.codehaus.groovy.ast.CodeVisitorSupport.
 visitBlockStatement(CodeVisitorSupport.java:83)
         at org.codehaus.groovy.ast.stmt.BlockStatement.
 visit(BlockStatement.java:79)
         at org.codehaus.groovy.classgen.AsmClassGenerator.
 visitMethod(AsmClassGenerator.java:393)
         at org.codehaus.groovy.ast.ClassNode.
 visitContents(ClassNode.java:803)
         at org.codehaus.groovy.classgen.AsmClassGenerator.
 visitClass(AsmClassGenerator.java:290)
         at org.codehaus.groovy.control.CompilationUnit$5.
 call(CompilationUnit.java:564)
         at org.codehaus.groovy.control.CompilationUnit.
 applyToPrimaryClassNodes(CompilationUnit.java:822)
         at org.codehaus.groovy.control.CompilationUnit.
 classgen(CompilationUnit.java:525)
         at org.codehaus.groovy.control.CompilationUnit.
 compile(CompilationUnit.java:432)
         at groovy.lang.GroovyClassLoader.
 parseClass(GroovyClassLoader.java:235)
         at groovy.lang.GroovyClassLoader.
 parseClass(GroovyClassLoader.java:204)
         at groovy.lang.GroovyClassLoader.
 parseClass(GroovyClassLoader.java:154)
         at groovy.lang.GroovyShell$1.run(GroovyShell.java:261)
         at java.security.AccessController.doPrivileged(Native
 Method)
         at groovy.lang.GroovyShell.run(GroovyShell.java:259)
         at groovy.lang.GroovyShell.run(GroovyShell.java:202)
         at groovy.ui.GroovyMain.processOnce(GroovyMain.java:397)
         at groovy.ui.GroovyMain.run(GroovyMain.java:233)
         at groovy.ui.GroovyMain.process(GroovyMain.java:219)
         at groovy.ui.GroovyMain.main(GroovyMain.java:123)
         at groovy.lang.GroovyShell.main(GroovyShell.java:121)
 I had problems with building xwiki from sources, so I have used
 build from 
http://build.xpertnet.biz:80/cc/buildresults/xwiki?
 log=log20050819033710Lbuild.88 (
http://build.xpertnet.biz:80/cc/
 artifacts/xwiki/20050819033710/xwiki-0.9.887.war).
 My env.sh:
 XWIKIHOME=/usr/share/tomcat5/webapps/xwiki/WEB-INF
 XWIKILIB=$XWIKIHOME/lib
 TOOLSLIB=./lib
 TOOLSPATH="$TOOLSLIB/commons-cli-1.0.jar"
 XWIKIPATH= ...
 CP=$TOOLSPATH:$XWIKIPATH
 export CP
 CLASSPATH=$CP #`cygpath --path --windows "$CP"`
 export CLASSPATH
 ./import.sh
 help :)
 Tomek
 ------------------------------------------------------------------------
 --
 You receive this message as a subscriber of the xwiki-users(a)objectweb.org mailing list.
 To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
 For general help: mailto:sympa@objectweb.org?subject=help
 ObjectWeb mailing lists service home page: 
http://www.objectweb.org/wws