public static void addFilePatternsToPackageResourceGuard ( final Application application , final String ... patterns ) { final IPackageResourceGuard packageResourceGuard = application . getResourceSettings ( ) . getPackageResourceGuard ( ) ; if ( packageResourceGuard instanceof SecurePackageResourceGuard ) { final SecurePackageResourceGuard guard = ( SecurePackageResourceGuard ) packageResourceGuard ; for ( final String pattern : patterns ) { guard . addPattern ( pattern ) ; } } }
Adds the given file patterns to package resource guard from the given application .