Show
Ignore:
Timestamp:
07/28/08 20:20:58 (16 months ago)
Author:
sukyoungryu
Message:

[tool] Fixed arrays and also do.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ProjectFortress/src/com/sun/fortress/Shell.java

    r2404 r2405  
    371371                Path path = sourcePath( s, name ); 
    372372 
    373                 /* 
    374                 Debug.debug( Debug.Type.REPOSITORY, 2, "True api name is " + name ); 
    375                 Debug.debug( Debug.Type.REPOSITORY, 2, "Path is " + s ); 
    376                 Path path = ProjectProperties.SOURCE_PATH; 
    377                 String source = new File( s ).getCanonicalPath().substring( 0, s.length() - (name.toString().length() + 4) ); 
    378                 path = path.prepend( source ); 
    379                 Debug.debug( Debug.Type.REPOSITORY, 2, "Source path is " + source ); 
    380                 Debug.debug( Debug.Type.REPOSITORY, 2, "Lookup path is " + path ); 
    381                 */ 
    382                 /* 
    383                 if (s.contains("/")) { 
    384                     String head = s.substring(0, s.lastIndexOf("/")); 
    385                     s = s.substring(s.lastIndexOf("/")+1, s.length()); 
    386                     path = path.prepend(head); 
    387                 } 
    388                 */ 
    389373                Iterable<? extends StaticError> errors = compile(path, name.toString() + (s.endsWith(".fss") ? ".fss" : ".fsi"), out ); 
    390374                if ( errors.iterator().hasNext() ){ 
     
    483467        throws UserError, Throwable { 
    484468        try { 
    485             /* 
    486             Path path = ProjectProperties.SOURCE_PATH; 
    487             if (fileName.contains("/")) { 
    488                 String head = fileName.substring(0, fileName.lastIndexOf("/")); 
    489                 fileName = fileName.substring(fileName.lastIndexOf("/")+1, fileName.length()); 
    490                 path = path.prepend(head); 
    491             } 
    492             APIName componentName = cuName(fileName); 
    493             */ 
    494  
    495469            APIName name = trueApiName( fileName ); 
    496470            Path path = sourcePath(fileName, name); 
    497              
     471 
    498472            GraphRepository bcr = specificRepository( path, defaultRepository ); 
    499473            Iterable<? extends StaticError> errors = IterUtil.empty(); 
     
    519493                System.err.println(error); 
    520494            } 
    521             // If there are no errors, all components will have been written to disk by the CacheBasedRepository. 
     495            // If there are no errors, 
     496            // all components will have been written to disk 
     497            // by the CacheBasedRepository. 
    522498        } catch ( StaticError e ){ 
    523499            System.err.println(e);