String extractedName = PathUtils.extractLowerCasedName(bsu.getRelativePath()); bsu.setName(extractedName); LOG.trace("Name of the bundle extracted from its path: \"{}\"", extractedName);
/** * <p> * Computes the final asset name: * <ol> * <li>First by reading the asset storage unit if the name if specified</li> * <li>Otherwise by extracting the asset name from its first location</li> * </ol> * </p> * * @param asu * The asset storage unit definition coming from the bundle * definition. * @param location * The selected location. * * @return the name of the asset. */ private String getName(AssetStorageUnit asu, String location) { if (StringUtils.isNotBlank(asu.getName())) { return asu.getName(); } else { return PathUtils.extractLowerCasedName(location); } }
/** * <p> * Computes the final asset name: * <ol> * <li>First by reading the asset storage unit if the name if specified</li> * <li>Otherwise by extracting the asset name from its first location</li> * </ol> * </p> * * @param asu * The asset storage unit definition coming from the bundle * definition. * @param location * The selected location. * * @return the name of the asset. */ private String getName(AssetStorageUnit asu, String location) { if (StringUtils.isNotBlank(asu.getName())) { return asu.getName(); } else { return PathUtils.extractLowerCasedName(location); } }
String extractedName = PathUtils.extractLowerCasedName(bsu.getRelativePath()); bsu.setName(extractedName); LOG.trace("Name of the bundle extracted from its path: \"{}\"", extractedName);
String extractedName = PathUtils.extractLowerCasedName(bsu.getRelativePath()); bsu.setName(extractedName); LOG.trace("Name of the bundle extracted from its path: \"{}\"", extractedName); String extractedName = PathUtils.extractLowerCasedName(firstFoundLocation); asu.setName(extractedName); LOG.trace("Name of the asset extracted from its first location: \"{}\"", extractedName);
String extractedName = PathUtils.extractLowerCasedName(bsu.getRelativePath()); bsu.setName(extractedName); LOG.trace("Name of the bundle extracted from its path: \"{}\"", extractedName); String extractedName = PathUtils.extractLowerCasedName(firstFoundLocation); asu.setName(extractedName); LOG.trace("Name of the asset extracted from its first location: \"{}\"", extractedName);
asu.setName(PathUtils.extractLowerCasedName(mainAsset)); asu.setVersion(bowerConf.getVersion()); asu.setBundle(bsu.getName());
asu.setName(PathUtils.extractLowerCasedName(mainAsset)); asu.setVersion(bowerConf.getVersion()); asu.setBundle(bsu.getName());