system/src/sc/layer/Layer.java
public void addSrcPath(String srcPath, String srcPathType, String buildPrefix, String fromPathType) {
      boolean abs;
      // A null srcPath just sets the buildPrefix
      if (srcPath != null) {
         abs = FileUtil.isAbsolutePath(srcPath);
         // Relative paths will already be found in the default src path (layerPathName) - so no need to add them here
         if (abs) {
            if (this.srcPath != null) {
               this.srcPath = this.srcPath + FileUtil.PATH_SEPARATOR_CHAR + srcPath;
            } else
               this.srcPath = layerPathName + FileUtil.PATH_SEPARATOR_CHAR + srcPath;
         }
      }
      else
          abs = false;
      if (srcPathType != null || buildPrefix != null) {
         SrcPathType type = new SrcPathType();
         type.pathTypeName = srcPathType;
         type.srcPath = srcPath;
         type.buildPrefix = buildPrefix;
         type.relative = !abs;
         type.fromPathTypeName = fromPathType;
         if (srcPathTypes == null)
            srcPathTypes = new ArrayList<SrcPathType>();
         srcPathTypes.add(type);
      }
   }
/**
    * Adds a new src directory to be searched for source files to an existing srcPathType or optionally creates a new srcPathType
    * when called with a srcPathType, buildPrefix, and fromPathType.
    * The srcPathType is a name that defines rules for processing src files in paths of that type.
    * For example for src files in the web directory, the srcPathType is 'web'.  If you want your files to be treated as ordinary source files
    * like Java files using the default build dir use null for the srcPathType.  Each srcPathType has an optional buildPrefix - prepended
    * onto the path name of the file, relative to the srcPath directory.
    * Specify a fromPathType to inherit the processors from a previous type, but to set a new buildPrefix for a given srcPath directory.
    */
Adds a new src directory to be searched for source files to an existing srcPathType or optionally creates a new srcPathType
when called with a srcPathType, buildPrefix, and fromPathType.
The srcPathType is a name that defines rules for processing src files in paths of that type.
For example for src files in the web directory, the srcPathType is 'web'.  If you want your files to be treated as ordinary source files
like Java files using the default build dir use null for the srcPathType.  Each srcPathType has an optional buildPrefix - prepended
onto the path name of the file, relative to the srcPath directory.
Specify a fromPathType to inherit the processors from a previous type, but to set a new buildPrefix for a given srcPath directory.
Adds a new src directory to be searched for source files to an existing srcPathType or optionally creates a new srcPathType when called with a srcPathType buildPrefix and fromPathType . The srcPathType is a name that defines rules for processing src files in paths of that type . For example for src files in the web directory the srcPathType is ' web ' . If you want your files to be treated as ordinary source files like Java files using the default build dir use null for the srcPathType . Each srcPathType has an optional buildPrefix - prepended onto the path name of the file relative to the srcPath directory . Specify a fromPathType to inherit the processors from a previous type but to set a new buildPrefix for a given srcPath directory .
public void addSrcPath(String srcPath, String srcPathType, String buildPrefix, String fromPathType) {
      boolean abs;
      if (srcPath != null) {
         abs = FileUtil.isAbsolutePath(srcPath);
         if (abs) {
            if (this.srcPath != null) {
               this.srcPath = this.srcPath + FileUtil.PATH_SEPARATOR_CHAR + srcPath;
            } else
               this.srcPath = layerPathName + FileUtil.PATH_SEPARATOR_CHAR + srcPath;
         }
      }
      else
          abs = false;
      if (srcPathType != null || buildPrefix != null) {
         SrcPathType type = new SrcPathType();
         type.pathTypeName = srcPathType;
         type.srcPath = srcPath;
         type.buildPrefix = buildPrefix;
         type.relative = !abs;
         type.fromPathTypeName = fromPathType;
         if (srcPathTypes == null)
            srcPathTypes = new ArrayList<SrcPathType>();
         srcPathTypes.add(type);
      }
   }
public void addSrcPath ( String srcPath , String srcPathType , String buildPrefix , String fromPathType ) { boolean abs ; if ( srcPath != null ) { abs = FileUtil . isAbsolutePath ( srcPath ) ; if ( abs ) { if ( this . srcPath != null ) { this . srcPath = this . srcPath + FileUtil . PATH_SEPARATOR_CHAR + srcPath ; } else this . srcPath = layerPathName + FileUtil . PATH_SEPARATOR_CHAR + srcPath ; } } else abs = false ; if ( srcPathType != null || buildPrefix != null ) { SrcPathType type = new SrcPathType ( ) ; type . pathTypeName = srcPathType ; type . srcPath = srcPath ; type . buildPrefix = buildPrefix ; type . relative = ! abs ; type . fromPathTypeName = fromPathType ; if ( srcPathTypes == null ) srcPathTypes = new ArrayList < SrcPathType > ( ) ; srcPathTypes . add ( type ) ; } }
Adds a new src directory to be searched for source files to an existing srcPathType or optionally creates a new srcPathType
 when called with a srcPathType, buildPrefix, and fromPathType.
Adds a new src directory to be searched for source files to an existing srcPathType or optionally creates a new srcPathType when called with a srcPathType buildPrefix and fromPathType .
// A null srcPath just sets the buildPrefix // Relative paths will already be found in the default src path (layerPathName) - so no need to add them here