private static void setAttributes ( Resource file , String attributes ) throws PageException { if ( ! SystemUtil . isWindows ( ) || StringUtil . isEmpty ( attributes ) ) return ; try { ResourceUtil . setAttribute ( file , attributes ) ; } catch ( IOException e ) { throw new ApplicationException ( "can't change attributes of file " + file , e . getMessage ( ) ) ; } }
set attributes on file