private void validateBundleId ( ResourceBundleDefinition definition ) { String bundleId = definition . getBundleId ( ) ; if ( bundleId != null ) { if ( ! bundleId . endsWith ( fileExtension ) ) { throw new BundlingProcessException ( "The extension of the bundle " + definition . getBundleName ( ) + " - " + bundleId + " doesn't match the allowed extension : '" + fileExtension + "'. Please update your bundle definition." ) ; } else if ( bundleId . startsWith ( JawrConstant . WEB_INF_DIR_PREFIX ) || bundleId . startsWith ( JawrConstant . META_INF_DIR_PREFIX ) ) { throw new BundlingProcessException ( "For the bundle " + definition . getBundleName ( ) + ", the bundle id '" + bundleId + "' is not allowed because it starts with \"/WEB-INF/\". Please update your bundle definition." ) ; } } }
Validates the bundle ID