private void initCompilerClosureArgumentsFromConfig ( List < String > args , JawrConfig config ) { Set < Entry < Object , Object > > entrySet = config . getConfigProperties ( ) . entrySet ( ) ; for ( Entry < Object , Object > propEntry : entrySet ) { String key = ( String ) propEntry . getKey ( ) ; if ( key . startsWith ( JAWR_JS_CLOSURE_PREFIX ) && ! JAWR_JS_CLOSURE_SPECIFIC_PROPERTIES . contains ( key ) ) { String compilerArgName = key . substring ( JAWR_JS_CLOSURE_PREFIX . length ( ) ) ; checkCompilerArgumentName ( compilerArgName ) ; String compilerArgValue = ( String ) propEntry . getValue ( ) ; compilerArgValue = getCompilerArgValue ( compilerArgName , compilerArgValue ) ; args . add ( CLOSURE_ARGUMENT_NAME_PREFIX + compilerArgName ) ; args . add ( propEntry . getValue ( ) . toString ( ) ) ; } } // Add default compilation level argument if ( ! args . contains ( COMPILATION_LEVEL_ARG ) ) { args . add ( COMPILATION_LEVEL_ARG ) ; args . add ( WHITESPACE_ONLY_COMPILATION_LEVEL ) ; } // Add default level warning argument if not defined if ( ! args . contains ( WARNING_LEVEL_ARG ) ) { args . add ( WARNING_LEVEL_ARG ) ; args . add ( VERBOSE_WARNING_LEVEL ) ; } }
Initialize the closure argument from the Jawr config