mirror of https://github.com/apache/archiva.git
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:
parent
eee92e93b8
commit
d9781d064a
|
@ -587,9 +587,10 @@ public class DefaultManagedRepositoryAdmin
|
||||||
File managedRepository = new File( repository.getLocation() );
|
File managedRepository = new File( repository.getLocation() );
|
||||||
|
|
||||||
File indexDirectory = null;
|
File indexDirectory = null;
|
||||||
if ( indexDir != null && !"".equals( indexDir ) )
|
if ( StringUtils.isNotBlank( indexDir ) )
|
||||||
{
|
{
|
||||||
indexDirectory = new File( repository.getIndexDirectory() );
|
indexDirectory = new File( repository.getIndexDirectory() );
|
||||||
|
// not absolute so create it in repository directory
|
||||||
if ( !indexDirectory.isAbsolute() )
|
if ( !indexDirectory.isAbsolute() )
|
||||||
{
|
{
|
||||||
indexDirectory = new File( managedRepository, repository.getIndexDirectory() );
|
indexDirectory = new File( managedRepository, repository.getIndexDirectory() );
|
||||||
|
|
Loading…
Reference in New Issue