diff options
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 ) { |