system/src/sc/layer/LayeredSystem.java
private void initPostBuildModels() {
      if (getUseContextClassLoader())
         Thread.currentThread().setContextClassLoader(getSysClassLoader());

      // Turn off sync for the page objects when they are being rendered statically - just removes some errors because we may create synchronized instances here
      SyncManager.SyncState oldState = SyncManager.setSyncState(SyncManager.SyncState.Disabled);
      postBuildProcessing = true;
      try {
         PerfMon.start("postBuildFiles");
         for (Map.Entry<String,ModelToPostBuild> ent:modelsToPostBuild.entrySet()) {
            ModelToPostBuild m = ent.getValue();
            IFileProcessorResult model = m.model;
            if (options.verbose)
               System.out.println("PostBuild processing: " + model.getProcessedFileId());

            model.postBuild(m.genLayer, m.genLayer.buildSrcDir);
         }
         PerfMon.end("postBuildFiles");
      }
      finally {
         SyncManager.restoreOldSyncState(oldState);
         postBuildProcessing = false;
      }
   }
/** Models such as schtml templates need to run after the entire system has compiled - the postBuild phase. */
Models such as schtml templates need to run after the entire system has compiled - the postBuild phase.
Models such as schtml templates need to run after the entire system has compiled - the postBuild phase .
private void initPostBuildModels() {
      if (getUseContextClassLoader())
         Thread.currentThread().setContextClassLoader(getSysClassLoader());
      SyncManager.SyncState oldState = SyncManager.setSyncState(SyncManager.SyncState.Disabled);
      postBuildProcessing = true;
      try {
         PerfMon.start("postBuildFiles");
         for (Map.Entry<String,ModelToPostBuild> ent:modelsToPostBuild.entrySet()) {
            ModelToPostBuild m = ent.getValue();
            IFileProcessorResult model = m.model;
            if (options.verbose)
               System.out.println("PostBuild processing: " + model.getProcessedFileId());
            model.postBuild(m.genLayer, m.genLayer.buildSrcDir);
         }
         PerfMon.end("postBuildFiles");
      }
      finally {
         SyncManager.restoreOldSyncState(oldState);
         postBuildProcessing = false;
      }
   }
private void initPostBuildModels ( ) { if ( getUseContextClassLoader ( ) ) Thread . currentThread ( ) . setContextClassLoader ( getSysClassLoader ( ) ) ; SyncManager . SyncState oldState = SyncManager . setSyncState ( SyncManager . SyncState . Disabled ) ; postBuildProcessing = true ; try { PerfMon . start ( "postBuildFiles" ) ; for ( Map . Entry < String , ModelToPostBuild > ent : modelsToPostBuild . entrySet ( ) ) { ModelToPostBuild m = ent . getValue ( ) ; IFileProcessorResult model = m . model ; if ( options . verbose ) System . out . println ( "PostBuild processing: " + model . getProcessedFileId ( ) ) ; model . postBuild ( m . genLayer , m . genLayer . buildSrcDir ) ; } PerfMon . end ( "postBuildFiles" ) ; } finally { SyncManager . restoreOldSyncState ( oldState ) ; postBuildProcessing = false ; } }
Models such as schtml templates need to run after the entire system has compiled - the postBuild phase.
Models such as schtml templates need to run after the entire system has compiled - the postBuild phase .
// Turn off sync for the page objects when they are being rendered statically - just removes some errors because we may create synchronized instances here