List of usage examples for org.apache.commons.io FilenameUtils normalize
public static String normalize(String filename, boolean unixSeparator)
From source file:org.yamj.core.service.file.FileStorageService.java
@Value("${yamj3.file.storage.mediainfo}") public void setStoragePathMediaInfo(String storagePathMediaInfo) { this.storagePathMediaInfo = FilenameUtils .normalize(FilenameUtils.concat(storageResourceDir, storagePathMediaInfo), Boolean.TRUE); if (!this.storagePathMediaInfo.endsWith("/")) { this.storagePathMediaInfo += "/"; }//from w w w. j ava2 s .co m LOG.info("MediaInfo storage path set to '{}'", this.storagePathMediaInfo); }
From source file:org.yamj.core.service.file.FileStorageService.java
@Value("${yamj3.file.storage.photo}") public void setStoragePathPhoto(String storagePathPhoto) { this.storagePathPhoto = FilenameUtils.normalize(FilenameUtils.concat(storageResourceDir, storagePathPhoto), Boolean.TRUE);/*from ww w . j av a 2 s. c om*/ if (!this.storagePathPhoto.endsWith("/")) { this.storagePathPhoto += "/"; } LOG.info("Photo storage path set to '{}'", this.storagePathPhoto); }
From source file:org.yamj.core.service.file.FileStorageService.java
@Value("${yamj3.file.storage.skins}") public void setStoragePathSkins(String storagePathSkins) { this.storagePathSkin = FilenameUtils.normalize(FilenameUtils.concat(storageResourceDir, storagePathSkins), Boolean.TRUE);//from ww w. j av a 2s. c o m if (!this.storagePathSkin.endsWith("/")) { this.storagePathSkin += "/"; } LOG.info("Skins storage path set to '{}'", this.storagePathSkin); }
From source file:pt.webdetails.cpf.repository.pentaho.unified.UnifiedRepositoryAccess.java
protected String getFullPath(String path) { // forces '/' return FilenameUtils.normalize(RepositoryHelper.appendPath(basePath, path), true); }