AnsweredAssumed Answered

Does the commandline bulk import of users script work on 2.0

Question asked by alexr on Mar 16, 2007
Latest reply on Mar 30, 2007 by ltendi
I am considering using the commandline bulk import of user scripts as described in the Packt/Alfresco book (author Munwar Shariff) work on an out-of-the-box Alfresco 2.0 install?

The java-command (including classpaths) in this book (v1.4) is:

java -classpath classes;lib\repository.jar;lib\core.jar;lib\spring.jar;lib\jibx-run.jar;
lib\xpp3.jar;lib\commons-logging.jar;lib\ehcache-1.1.jar;
lib\dom4j-1.6.1.jar;lib\acegi-security-0.8.2.jar;lib\hibernate3.jar;
lib\quartz.jar;lib\pdfbox-0.7.2.jar;lib\poi-2.5.1.jar;lib\jooconverter.jar;
lib\jid3lib-0.5.jar;lib\freemarker.jar;lib\log4j-1.2.8.jar;
lib\cryptix-jce-provider,jar;lib\commons-codec-1.2.jar;
lib\commons-dbcp-1.2.1.jar;lib\commons-pool.jar;lib\jta.jar;lib\mail.jar;
lib\activation.jar;lib\jug.jar;lib\commons-collections-3.0.jar;
lib\cglib-nodep-2.1.jar;lib\antlr-2.7.5H3.jar;
lib\tm-extractors-4.0_patched.jar;\lib\ridl.jar;lib\juh.jar;lib\jurt.jar;
lib\sandbox.jar;lib\jut.jar;lib\lucene-1.4.3.jar;
..\..\..\common\lib\mysql-connector-java-3.1.12-bin.jar;lib\saxpath.jar;
lib\jaxen-1.1-beta-8.jar
org.alfresco.tools.Import -user admin -pwd xxxxx -store workspace://SpaceStore -path sys:system\sys:people person.xml


Where the person.xml should have a structure also described in that same book on page 89.

On some of the other posts I read that the import tool threw all kinds of errors and user was unable to login to the repository etc.
So how safe is this import-tool and do the jar-files described above still reflect a call on a Alfresco 2.0 environment?

The only alternative would be creating a program that uses webservices. However at this point the import-tool seems more convenient.

Please tell me if I can use the above java command script or tell me what the Alfresco 2.0 variant would look like.

Thanks,

Alex

Outcomes