#NEWLINE# def _CompileJspsWithGenDir( self , tools_dir , staging_dir , gen_dir ) : #NEWLINE# #INDENT# staging_web_inf = os . path . join ( staging_dir , 'WEB-INF' ) #NEWLINE# lib_dir = os . path . join ( staging_web_inf , 'lib' ) #NEWLINE# for jar_file in GetUserJspLibFiles ( tools_dir ) : #NEWLINE# #INDENT# self . _CopyOrLinkFile ( jar_file , os . path . join ( lib_dir , os . path . basename ( jar_file ) ) ) #NEWLINE# #UNINDENT# for jar_file in GetSharedJspLibFiles ( tools_dir ) : #NEWLINE# #INDENT# self . _CopyOrLinkFile ( jar_file , os . path . join ( lib_dir , os . path . basename ( jar_file ) ) ) #NEWLINE# #UNINDENT# classes_dir = os . path . join ( staging_web_inf , 'classes' ) #NEWLINE# generated_web_xml = os . path . join ( staging_web_inf , 'generated_web.xml' ) #NEWLINE# classpath = self . _GetJspClasspath ( tools_dir , classes_dir , gen_dir ) #NEWLINE# command_and_args = [ self . java_command , '-classpath' , classpath , _LOCAL_JSPC_CLASS , '-uriroot' , staging_dir , '-p' , 'org.apache.jsp' , '-l' , '-v' , '-webinc' , generated_web_xml , '-d' , gen_dir , '-javaEncoding' , self . options . compile_encoding ] #NEWLINE# status = subprocess . call ( command_and_args ) #NEWLINE# if status : #NEWLINE# #INDENT# raise CompileError ( ( 'Compilation of JSPs exited with status %d' % status ) ) #NEWLINE# #UNINDENT# self . _CompileJavaFiles ( classpath , staging_web_inf , gen_dir ) #NEWLINE# self . web_xml = self . _ReadWebXml ( staging_dir )