#NEWLINE# def begin( self ) : #NEWLINE# #INDENT# super ( ClosureGssLibraryRule . _Context , self ) . begin ( ) #NEWLINE# args = [ ] #NEWLINE# args . extend ( jar_path . rule . compiler_flags ) #NEWLINE# args . extend ( [ '--allowed-non-standard-function' , 'color-stop' ] ) #NEWLINE# needs_map_file = False #NEWLINE# if ( self . rule . mode == 'MINIFIED' ) : #NEWLINE# #INDENT# args . extend ( [ '--rename' , 'NONE' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . rule . mode == 'DEBUG_COMPILED' ) : #NEWLINE# #INDENT# needs_map_file = True #NEWLINE# args . extend ( [ '--rename' , 'DEBUG' ] ) #NEWLINE# args . extend ( [ '--output-renaming-map-format' , 'CLOSURE_COMPILED_SPLIT_HYPHENS' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . rule . mode == 'COMPILED' ) : #NEWLINE# #INDENT# needs_map_file = True #NEWLINE# args . extend ( [ '--rename' , 'CLOSURE' ] ) #NEWLINE# args . extend ( [ '--output-renaming-map-format' , 'CLOSURE_COMPILED_SPLIT_HYPHENS' ] ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if needs_map_file : #NEWLINE# #INDENT# map_path = self . _get_gen_path ( name = self . rule . out , suffix = '.js' ) #NEWLINE# self . _ensure_output_exists ( os . path . dirname ( map_path ) ) #NEWLINE# self . _append_output_paths ( [ map_path ] ) #NEWLINE# args . extend ( [ '--output-renaming-map' , map_path ] ) #NEWLINE# #UNINDENT# if self . rule . pretty_print : #NEWLINE# #INDENT# args . append ( '--pretty-print' ) #NEWLINE# #UNINDENT# output_path = self . _get_out_path ( name = self . rule . out , suffix = '.css' ) #NEWLINE# self . _ensure_output_exists ( os . path . dirname ( output_path ) ) #NEWLINE# self . _append_output_paths ( [ output_path ] ) #NEWLINE# args . extend ( [ '--output-file' , output_path ] ) #NEWLINE# args . extend ( self . src_paths ) #NEWLINE# if self . _check_if_cached ( ) : #NEWLINE# #INDENT# self . _succeed ( ) #NEWLINE# return #NEWLINE# #UNINDENT# jar_path = self . _resolve_input_files ( [ self . rule . compiler_jar ] ) [ 0 ] #NEWLINE# d = self . _run_task_async ( JavaExecutableTask ( self . build_env , jar_path , args ) ) #NEWLINE# self . _chain ( d )