system/src/sc/layer/LayeredSystem.java
public String findLayerDefFileInPath(String layerPathName, String relDir, String relPath) {
      // defaults to using paths relative to the current directory
      if (layerPathDirs == null || relDir != null)
         return findLayerDefFile(relDir == null ? "." : relDir, layerPathName, relDir, relPath);

      for (File pathDir:layerPathDirs) {
         String path = findLayerDefFile(pathDir.getPath(), layerPathName, null, relPath);
         if (path != null)
            return path;
      }
      return null;
   }
/** This works like findLayerInPath but only returns the path name of a valid layerDef file. */
This works like findLayerInPath but only returns the path name of a valid layerDef file.
This works like findLayerInPath but only returns the path name of a valid layerDef file .
public String findLayerDefFileInPath(String layerPathName, String relDir, String relPath) {
      if (layerPathDirs == null || relDir != null)
         return findLayerDefFile(relDir == null ? "." : relDir, layerPathName, relDir, relPath);
      for (File pathDir:layerPathDirs) {
         String path = findLayerDefFile(pathDir.getPath(), layerPathName, null, relPath);
         if (path != null)
            return path;
      }
      return null;
   }
public String findLayerDefFileInPath ( String layerPathName , String relDir , String relPath ) { if ( layerPathDirs == null || relDir != null ) return findLayerDefFile ( relDir == null ? "." : relDir , layerPathName , relDir , relPath ) ; for ( File pathDir : layerPathDirs ) { String path = findLayerDefFile ( pathDir . getPath ( ) , layerPathName , null , relPath ) ; if ( path != null ) return path ; } return null ; }
This works like findLayerInPath but only returns the path name of a valid layerDef file.
This works like findLayerInPath but only returns the path name of a valid layerDef file .
// defaults to using paths relative to the current directory