diff options
author | Emmanuel Venisse <evenisse@apache.org> | 2006-10-09 09:51:18 +0000 |
---|---|---|
committer | Emmanuel Venisse <evenisse@apache.org> | 2006-10-09 09:51:18 +0000 |
commit | 7f606ec6571ac698dffcde8801300c44ac811134 (patch) | |
tree | 63cadcd5bf76dbc0ae9dedb3196922e080dfe3bc /archiva-discoverer | |
parent | bb5af95ff14d35d795c7055f843ea40fbb448993 (diff) | |
download | archiva-7f606ec6571ac698dffcde8801300c44ac811134.tar.gz archiva-7f606ec6571ac698dffcde8801300c44ac811134.zip |
Fix NPE when repository path contains spaces
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@454323 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-discoverer')
-rw-r--r-- | archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/AbstractDiscoverer.java | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/AbstractDiscoverer.java b/archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/AbstractDiscoverer.java index b6d17c44d..10276a640 100644 --- a/archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/AbstractDiscoverer.java +++ b/archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/AbstractDiscoverer.java @@ -104,16 +104,8 @@ public abstract class AbstractDiscoverer } DirectoryScanner scanner = new DirectoryScanner(); - try - { - //Fix FNFE when repositoryBase contain spaces - //TODO: move this code in DirectoryScanner.setBasedir() - scanner.setBasedir( repositoryBase.getCanonicalFile() ); - } - catch( IOException e ) - { - scanner.setBasedir( repositoryBase ); - } + + scanner.setBasedir( repositoryBase ); if ( includes != null ) { |