system/src/sc/layer/Layer.java
public void addBuildDirs(BuildState bd) {
      if (topLevelSrcDirs == null || topLevelSrcDirs.size() == 0) {
         warn("No srcPath entries for layer: ", this.toString());
      }
      else {
         TreeSet<String> srcDirNames = new TreeSet<String>();
         int ct = 0;
         for (String topLevelSrcDir : topLevelSrcDirs) {
            String srcRootName = null;
            if (!FileUtil.isAbsolutePath(topLevelSrcDir))
               topLevelSrcDir = FileUtil.concat(layerPathName, topLevelSrcDir);
            else {
               if (!topLevelSrcDir.startsWith(layerPathName)) {
                  String dirName = FileUtil.getFileName(topLevelSrcDir);
                  String srcName = dirName;
                  int ix = 1;
                  while (srcDirNames.contains(srcName))
                     srcName = dirName+(ix++);
                  srcRootName = srcName;
                  srcDirNames.add(srcRootName);
               }
            }
            SrcEntry newSrcEnt = new SrcEntry(this, topLevelSrcDir, "", "", srcRootName);
            bd.addSrcEntry(-1, newSrcEnt);
            if (srcRootName != null) {
               if (srcRootNames == null) {
                  srcRootNames = new ArrayList<String>();
                  for (int j = 0; j < ct; j++)
                     srcRootNames.add(null);
               }
               srcRootNames.add(srcRootName);
            }
            ct++;
         }
      }
   }
/** Adds the top level src directories for  */
Adds the top level src directories for
Adds the top level src directories for
public void addBuildDirs(BuildState bd) {
      if (topLevelSrcDirs == null || topLevelSrcDirs.size() == 0) {
         warn("No srcPath entries for layer: ", this.toString());
      }
      else {
         TreeSet<String> srcDirNames = new TreeSet<String>();
         int ct = 0;
         for (String topLevelSrcDir : topLevelSrcDirs) {
            String srcRootName = null;
            if (!FileUtil.isAbsolutePath(topLevelSrcDir))
               topLevelSrcDir = FileUtil.concat(layerPathName, topLevelSrcDir);
            else {
               if (!topLevelSrcDir.startsWith(layerPathName)) {
                  String dirName = FileUtil.getFileName(topLevelSrcDir);
                  String srcName = dirName;
                  int ix = 1;
                  while (srcDirNames.contains(srcName))
                     srcName = dirName+(ix++);
                  srcRootName = srcName;
                  srcDirNames.add(srcRootName);
               }
            }
            SrcEntry newSrcEnt = new SrcEntry(this, topLevelSrcDir, "", "", srcRootName);
            bd.addSrcEntry(-1, newSrcEnt);
            if (srcRootName != null) {
               if (srcRootNames == null) {
                  srcRootNames = new ArrayList<String>();
                  for (int j = 0; j < ct; j++)
                     srcRootNames.add(null);
               }
               srcRootNames.add(srcRootName);
            }
            ct++;
         }
      }
   }
public void addBuildDirs ( BuildState bd ) { if ( topLevelSrcDirs == null || topLevelSrcDirs . size ( ) == 0 ) { warn ( "No srcPath entries for layer: " , this . toString ( ) ) ; } else { TreeSet < String > srcDirNames = new TreeSet < String > ( ) ; int ct = 0 ; for ( String topLevelSrcDir : topLevelSrcDirs ) { String srcRootName = null ; if ( ! FileUtil . isAbsolutePath ( topLevelSrcDir ) ) topLevelSrcDir = FileUtil . concat ( layerPathName , topLevelSrcDir ) ; else { if ( ! topLevelSrcDir . startsWith ( layerPathName ) ) { String dirName = FileUtil . getFileName ( topLevelSrcDir ) ; String srcName = dirName ; int ix = 1 ; while ( srcDirNames . contains ( srcName ) ) srcName = dirName + ( ix ++ ) ; srcRootName = srcName ; srcDirNames . add ( srcRootName ) ; } } SrcEntry newSrcEnt = new SrcEntry ( this , topLevelSrcDir , "" , "" , srcRootName ) ; bd . addSrcEntry ( - 1 , newSrcEnt ) ; if ( srcRootName != null ) { if ( srcRootNames == null ) { srcRootNames = new ArrayList < String > ( ) ; for ( int j = 0 ; j < ct ; j ++ ) srcRootNames . add ( null ) ; } srcRootNames . add ( srcRootName ) ; } ct ++ ; } } }
Adds the top level src directories for
Adds the top level src directories for