public static String getClassNameForClassFile ( String rootDir , String path ) { path = path . replace ( "/" , "." ) ; path = path . replace ( ' ' , ' ' ) ; path = path . substring ( 0 , path . length ( ) - CLASS_EXTENSION . length ( ) ) ; if ( rootDir != null ) { path = path . substring ( rootDir . length ( ) ) ; } return path ; }
Returns the class name for a compiled class file