system/src/sc/lang/AbstractInterpreter.java
public void pushIncludeScript(String baseDirName, String includeName, Layer includeLayer) {
      String relName = null;
      String dirName = null;
      if (!FileUtil.isAbsolutePath(includeName)) {
         relName = includeName;
         String fileName = FileUtil.concat(baseDirName, includeName);

         if (!new File(fileName).canRead()) {
            throw new IllegalArgumentException("No script to include: " + fileName);
         }
         includeName = fileName;
         int dirIx = relName.lastIndexOf("/");
         if (dirIx != -1)
            dirName = relName.substring(0, dirIx);
      }
      pushCurrentInput(false);
      try {
         this.inputFileName = includeName;
         this.inputRelName = relName;
         this.includeLayer = includeLayer; // Specifies the source layer where the test script came from (or null if we should use the buildLayer)
         this.path = dirName == null ? null : dirName.replace("/", ".");
         resetInput();
      }
      catch (RuntimeException exc) {
         popCurrentInput();
         throw exc;
      }
   }
/** Pushes an include script onto the top of the stack of files to be processed and returns immediately - before the script has run. */
Pushes an include script onto the top of the stack of files to be processed and returns immediately - before the script has run.
Pushes an include script onto the top of the stack of files to be processed and returns immediately - before the script has run .
public void pushIncludeScript(String baseDirName, String includeName, Layer includeLayer) {
      String relName = null;
      String dirName = null;
      if (!FileUtil.isAbsolutePath(includeName)) {
         relName = includeName;
         String fileName = FileUtil.concat(baseDirName, includeName);
         if (!new File(fileName).canRead()) {
            throw new IllegalArgumentException("No script to include: " + fileName);
         }
         includeName = fileName;
         int dirIx = relName.lastIndexOf("/");
         if (dirIx != -1)
            dirName = relName.substring(0, dirIx);
      }
      pushCurrentInput(false);
      try {
         this.inputFileName = includeName;
         this.inputRelName = relName;
         this.includeLayer = includeLayer; 
         this.path = dirName == null ? null : dirName.replace("/", ".");
         resetInput();
      }
      catch (RuntimeException exc) {
         popCurrentInput();
         throw exc;
      }
   }
public void pushIncludeScript ( String baseDirName , String includeName , Layer includeLayer ) { String relName = null ; String dirName = null ; if ( ! FileUtil . isAbsolutePath ( includeName ) ) { relName = includeName ; String fileName = FileUtil . concat ( baseDirName , includeName ) ; if ( ! new File ( fileName ) . canRead ( ) ) { throw new IllegalArgumentException ( "No script to include: " + fileName ) ; } includeName = fileName ; int dirIx = relName . lastIndexOf ( "/" ) ; if ( dirIx != - 1 ) dirName = relName . substring ( 0 , dirIx ) ; } pushCurrentInput ( false ) ; try { this . inputFileName = includeName ; this . inputRelName = relName ; this . includeLayer = includeLayer ; this . path = dirName == null ? null : dirName . replace ( "/" , "." ) ; resetInput ( ) ; } catch ( RuntimeException exc ) { popCurrentInput ( ) ; throw exc ; } }
Pushes an include script onto the top of the stack of files to be processed and returns immediately - before the script has run.
Pushes an include script onto the top of the stack of files to be processed and returns immediately - before the script has run .
// Specifies the source layer where the test script came from (or null if we should use the buildLayer)