Examples of FileDAOFactory


Examples of net.sourceforge.pebble.dao.file.FileDAOFactory

   * Starts the importer.
   */
  public static void main(String[] args) throws Exception {
    File root = new File(args[0]);
    File sources[] = root.listFiles();
    DAOFactory.setConfiguredFactory(new FileDAOFactory());
    Blog blog = new Blog(args[1]);
    blog.setProperty(Blog.TIMEZONE_KEY, args[2]);

    for (int i = 0; i < sources.length; i++) {
      importFile(blog, sources[i]);
View Full Code Here

Examples of net.sourceforge.pebble.dao.file.FileDAOFactory

      config.setDataDirectory(args[1]);
      config.setUrl("http://www.yourdomain.com/blog/");
      PebbleContext.getInstance().setConfiguration(config);
    }

    DAOFactory.setConfiguredFactory(new FileDAOFactory());
    Blog blog = new Blog(args[1]);
    blog.setProperty(Blog.TIMEZONE_KEY, args[2]);

    importBlog(blog, file);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.