use StringUtils.isNotBlank

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1442912 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2013-02-06 11:23:06 +00:00
parent eee92e93b8
commit d9781d064a
1 changed files with 2 additions and 1 deletions

View File

@ -587,9 +587,10 @@ public class DefaultManagedRepositoryAdmin
File managedRepository = new File( repository.getLocation() );
File indexDirectory = null;
if ( indexDir != null && !"".equals( indexDir ) )
if ( StringUtils.isNotBlank( indexDir ) )
{
indexDirectory = new File( repository.getIndexDirectory() );
// not absolute so create it in repository directory
if ( !indexDirectory.isAbsolute() )
{
indexDirectory = new File( managedRepository, repository.getIndexDirectory() );