'Builds the classpath for the JSP Compilation system call.'

@staticmethod
def _GetJspClasspath(tools_dir, classes_dir, gen_dir):

    lib_dir = os.path.join(os.path.dirname(classes_dir), 'lib')
    elements = (((GetImplLibs(tools_dir) + GetSharedLibFiles(tools_dir)) + [classes_dir, gen_dir]) + _FilesMatching(lib_dir, (lambda f: (f.endswith('.jar') or f.endswith('.zip')))))
    return os.pathsep.join(elements)
