'Compile all *.java files found under jsp_class_dir.'

def _CompileJavaFiles(self, classpath, web_inf, jsp_class_dir):

    java_files = _FilesMatching(jsp_class_dir, (lambda f: f.endswith('.java')))
    if (not java_files):
        return
    command_and_args = ([self.javac_command, '-classpath', classpath, '-d', jsp_class_dir, '-source', '7', '-target', '7', '-encoding', self.options.compile_encoding] + java_files)
    status = subprocess.call(command_and_args)
    if status:
        raise CompileError(('Compilation    of    JSP-generated    code    exited    with    status    %d' % status))
    if self.options.jar_jsps:
        self._ZipJasperGeneratedFiles(web_inf, jsp_class_dir)
    else:
        web_inf_classes = os.path.join(web_inf, 'classes')
        self._MoveDirectoryContents(jsp_class_dir, web_inf_classes)
    if self.options.delete_jsps:
        jsps = _FilesMatching(os.path.dirname(web_inf), (lambda f: f.endswith('.jsp')))
        for f in jsps:
            os.remove(f)
    if self.options.do_jar_classes:
        self._ZipWebInfClassesFiles(web_inf)
