#NEWLINE# @ after ( 'package' , only_once = True ) #NEWLINE# def filter_resources( project , logger ) : #NEWLINE# #INDENT# globs = project . get_mandatory_property ( 'filter_resources_glob' ) #NEWLINE# if ( not globs ) : #NEWLINE# #INDENT# logger . warn ( 'No resources to filter configured. Consider removing plugin.' ) #NEWLINE# return #NEWLINE# #UNINDENT# target = project . expand_path ( '$filter_resources_target' ) #NEWLINE# logger . info ( 'Filter resources matching %s in %s' , ' ' . join ( globs ) , target ) #NEWLINE# project_dict_wrapper = ProjectDictWrapper ( project , logger ) #NEWLINE# apply_on_files ( target , filter_resource , globs , project_dict_wrapper , logger )