private String buildClassPath ( ) { String classPath = null ; //_classPath; if ( classPath != null ) { return classPath ; } if ( classPath == null && _loader instanceof DynamicClassLoader ) { classPath = ( ( DynamicClassLoader ) _loader ) . getClassPath ( ) ; } else { // if (true || _loader instanceof URLClassLoader) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( CauchoUtil . getClassPath ( ) ) ; if ( _loader != null ) buildClassPath ( sb , _loader ) ; classPath = sb . toString ( ) ; } //else if (classPath == null) //classPath = CauchoSystem.getClassPath(); String srcDirName = getSourceDirName ( ) ; String classDirName = getClassDirName ( ) ; char sep = CauchoUtil . getPathSeparatorChar ( ) ; if ( _extraClassPath != null ) classPath = classPath + sep + _extraClassPath ; // Adding the srcDir lets javac and jikes find source files if ( ! srcDirName . equals ( classDirName ) ) classPath = srcDirName + sep + classPath ; classPath = classDirName + sep + classPath ; return classPath ; }
Returns the classpath for the compiler .