public String [ ] getBaseNames ( boolean warDeployed ) { String [ ] names = configParam . split ( GrailsLocaleUtils . RESOURCE_BUNDLE_SEPARATOR ) ; List < String > baseNames = new ArrayList < String > ( ) ; for ( String baseName : names ) { // Read the properties files to find out the available message keys. It // is done differently // for run-app or run-war style of runtimes. boolean isPluginResoucePath = GrailsLocaleUtils . isPluginResoucePath ( baseName ) ; if ( warDeployed ) { if ( isPluginResoucePath ) { baseName = WEB_INF_DIR + rsReader . getRealResourcePath ( baseName ) ; } else { baseName = PROPERTIES_DIR + baseName . substring ( baseName . lastIndexOf ( ' ' ) + 1 ) ; } } else { if ( isPluginResoucePath ) { baseName = URI_ABSOLUTE_FILE_PREFIX + rsReader . getRealResourcePath ( baseName ) ; } else { baseName = URI_RELATIVE_FILE_PREFIX + baseName . replaceAll ( REGEX_DOT_CHARACTER , JawrConstant . URL_SEPARATOR ) ; } } baseNames . add ( baseName ) ; } return baseNames . toArray ( new String [ ] { } ) ; }
Returns the basenames