Package org.meshcms.core

Examples of org.meshcms.core.MainWebSite


  public Writer getWriter() {
    return writer;
  }

  protected void postProcess() {
    MainWebSite mainWebSite = null;
   
    if (webSite instanceof VirtualWebSite) {
      mainWebSite = ((VirtualWebSite) webSite).getMainWebSite();
    }
   
    write("");
    StaticExportCopier copier = new StaticExportCopier(staticDir);
    copier.setInitialDir(initialDir);
    copier.setWriter(writer);
    copier.setCheckDates(checkDates);
    copier.process();
   
    write("");
    StaticExportCleaner cleaner = new StaticExportCleaner(initialDir);
    cleaner.setInitialDir(staticDir);
    cleaner.setWriter(writer);
   
    if (mainWebSite != null) {
      cleaner.setProtectedPath(webSite.getAdminPath());
    }
   
    cleaner.process();

    if (mainWebSite != null) {
      File adminStaticDir = webSite.getAdminPath().getFile(staticDir);
      File adminDir = mainWebSite.getFile(mainWebSite.getAdminPath());

      write("");
      StaticExportCopier adminCopier = new StaticExportCopier(adminStaticDir);
      adminCopier.setMkDirs(true);
      adminCopier.setInitialDir(adminDir);
View Full Code Here

TOP

Related Classes of org.meshcms.core.MainWebSite

Copyright © 2018 www.massapicom. 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.