Class ImporterMain


  • public final class ImporterMain
    extends Object
    Class to call from the command line to import XWiki documents into database.
    Version:
    $Id: 7051e4de44f1130b0b5a9d01292277e9ae4fc728 $
    • Method Detail

      • main

        public static void main​(String[] args)
                         throws Exception
        Command line hook so that the importer can be called directly on the command line.
        Parameters:
        args - the first argument is the directory where the package.xml file is located and where the documents to import are located, the second argument is some database name (TODO: find out what this name is really) and the third argument is the Hibernate config fill containing the database definition (JDBC driver, username and password, etc)
        Throws:
        Exception - in case of an error while importing