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