From: Maria Odea B. Ching Date: Tue, 28 Jul 2009 08:00:48 +0000 (+0000) Subject: fixed repo path shown in log X-Git-Tag: archiva-1.2.2~27 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=95e064f8a82c5b4c763f8e50d7b6e9c205b137d7;p=archiva.git fixed repo path shown in log git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@798437 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/scanner/DefaultRepositoryScanner.java b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/scanner/DefaultRepositoryScanner.java index f5784509c..37ee25220 100644 --- a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/scanner/DefaultRepositoryScanner.java +++ b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/scanner/DefaultRepositoryScanner.java @@ -73,17 +73,17 @@ public class DefaultRepositoryScanner } File repositoryBase = new File( repository.getLocation() ); - + if ( !repositoryBase.exists() ) { throw new UnsupportedOperationException( "Unable to scan a repository, directory " - + repositoryBase.getAbsolutePath() + " does not exist." ); + + repositoryBase.getPath() + " does not exist." ); } if ( !repositoryBase.isDirectory() ) { throw new UnsupportedOperationException( "Unable to scan a repository, path " - + repositoryBase.getAbsolutePath() + " is not a directory." ); + + repositoryBase.getPath() + " is not a directory." ); } // Setup Includes / Excludes.