public static File findIcon ( String name , String qualifier , File configurationDirectory ) { // Deal with an invalid directory if ( configurationDirectory == null ) return null ; // Find the root directory File root ; if ( ! Utils . isEmptyOrWhitespaces ( qualifier ) ) { ApplicationTemplate tpl = new ApplicationTemplate ( name ) . version ( qualifier ) ; root = ConfigurationUtils . findTemplateDirectory ( tpl , configurationDirectory ) ; } else { root = ConfigurationUtils . findApplicationDirectory ( name , configurationDirectory ) ; } // Find an icon in the directory return IconUtils . findIcon ( root ) ; }
Finds the icon associated with an application template .