system/src/sc/layer/Layer.java
public void updateBuildInProgress(boolean start) {
      String rtName = layeredSystem.getRuntimeName();
      String fileBase = BUILD_STATUS_FILE_BASE;
      if (rtName != null)
         fileBase = "." + rtName + "_" + fileBase;
      String buildInProgressFile = FileUtil.concat(buildDir, fileBase);

      if (start) {
         String status;
         try {
            status = new File(buildInProgressFile).canRead() ? FileUtil.getFileAsString(buildInProgressFile) : null;
         }
         catch (IllegalArgumentException exc) {
            status = null;
         }
         if (status == null || !status.startsWith(COMPLETE_STATUS)) {
            buildAllFiles = true;
            if (status != null) {
               layeredSystem.buildInterrupted = true;
               if (layeredSystem.options.info)
                  System.out.print("Rebuilding build layer: " + this + " from scratch - last build interrupted! " + status);
            }
            else {
               if (layeredSystem.options.info)
                  System.out.println("New build for build layer: " + this);
            }
         }
         FileUtil.saveStringAsFile(buildInProgressFile, "Build started: " + new Date() + FileUtil.LINE_SEPARATOR, true);
      }
      else {
         FileUtil.saveStringAsFile(buildInProgressFile, COMPLETE_STATUS + new Date() + FileUtil.LINE_SEPARATOR, true);
      }
   }
/**
    * Called for a build layer before the first phase with true and after the last phase with false.  Decides whether the build
    * was interrupted or not.
    */
Called for a build layer before the first phase with true and after the last phase with false.  Decides whether the build
was interrupted or not.
Called for a build layer before the first phase with true and after the last phase with false . Decides whether the build was interrupted or not .
public void updateBuildInProgress(boolean start) {
      String rtName = layeredSystem.getRuntimeName();
      String fileBase = BUILD_STATUS_FILE_BASE;
      if (rtName != null)
         fileBase = "." + rtName + "_" + fileBase;
      String buildInProgressFile = FileUtil.concat(buildDir, fileBase);
      if (start) {
         String status;
         try {
            status = new File(buildInProgressFile).canRead() ? FileUtil.getFileAsString(buildInProgressFile) : null;
         }
         catch (IllegalArgumentException exc) {
            status = null;
         }
         if (status == null || !status.startsWith(COMPLETE_STATUS)) {
            buildAllFiles = true;
            if (status != null) {
               layeredSystem.buildInterrupted = true;
               if (layeredSystem.options.info)
                  System.out.print("Rebuilding build layer: " + this + " from scratch - last build interrupted! " + status);
            }
            else {
               if (layeredSystem.options.info)
                  System.out.println("New build for build layer: " + this);
            }
         }
         FileUtil.saveStringAsFile(buildInProgressFile, "Build started: " + new Date() + FileUtil.LINE_SEPARATOR, true);
      }
      else {
         FileUtil.saveStringAsFile(buildInProgressFile, COMPLETE_STATUS + new Date() + FileUtil.LINE_SEPARATOR, true);
      }
   }
public void updateBuildInProgress ( boolean start ) { String rtName = layeredSystem . getRuntimeName ( ) ; String fileBase = BUILD_STATUS_FILE_BASE ; if ( rtName != null ) fileBase = "." + rtName + "_" + fileBase ; String buildInProgressFile = FileUtil . concat ( buildDir , fileBase ) ; if ( start ) { String status ; try { status = new File ( buildInProgressFile ) . canRead ( ) ? FileUtil . getFileAsString ( buildInProgressFile ) : null ; } catch ( IllegalArgumentException exc ) { status = null ; } if ( status == null || ! status . startsWith ( COMPLETE_STATUS ) ) { buildAllFiles = true ; if ( status != null ) { layeredSystem . buildInterrupted = true ; if ( layeredSystem . options . info ) System . out . print ( "Rebuilding build layer: " + this + " from scratch - last build interrupted! " + status ) ; } else { if ( layeredSystem . options . info ) System . out . println ( "New build for build layer: " + this ) ; } } FileUtil . saveStringAsFile ( buildInProgressFile , "Build started: " + new Date ( ) + FileUtil . LINE_SEPARATOR , true ) ; } else { FileUtil . saveStringAsFile ( buildInProgressFile , COMPLETE_STATUS + new Date ( ) + FileUtil . LINE_SEPARATOR , true ) ; } }
Called for a build layer before the first phase with true and after the last phase with false.
Called for a build layer before the first phase with true and after the last phase with false .