Class ExporterMain

  • public final class ExporterMain
    extends Object
    Class to call from the command line to export XWiki documents found in a database to the file system.
    $Id: 85467081e701e1ae38820add2dd82c22274d43b0 $
    • Method Detail

      • main

        public static void main​(String[] args)
                         throws Exception
        Command line hook so that the exporter can be called directly on the command line.
        args - the first argument is the directory where to export the documents, 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)
        Exception - in case of an error while exporting