Changeset 2405 for trunk/ProjectFortress/src/com/sun/fortress/Shell.java
- Timestamp:
- 07/28/08 20:20:58 (16 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/ProjectFortress/src/com/sun/fortress/Shell.java
r2404 r2405 371 371 Path path = sourcePath( s, name ); 372 372 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 */389 373 Iterable<? extends StaticError> errors = compile(path, name.toString() + (s.endsWith(".fss") ? ".fss" : ".fsi"), out ); 390 374 if ( errors.iterator().hasNext() ){ … … 483 467 throws UserError, Throwable { 484 468 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 495 469 APIName name = trueApiName( fileName ); 496 470 Path path = sourcePath(fileName, name); 497 471 498 472 GraphRepository bcr = specificRepository( path, defaultRepository ); 499 473 Iterable<? extends StaticError> errors = IterUtil.empty(); … … 519 493 System.err.println(error); 520 494 } 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. 522 498 } catch ( StaticError e ){ 523 499 System.err.println(e);

