Only set LocalIfFileRepo if MavenRepository.localIfFile is set.

This commit is contained in:
Dale Wijnand 2015-08-20 20:29:15 +01:00
parent 0bf7e63887
commit 5662b2ceed
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ private[sbt] object ConvertResolver {
}
}
val resolver = new PluginCapableResolver
resolver.setRepository(new LocalIfFileRepo)
if (repo.localIfFile) resolver.setRepository(new LocalIfFileRepo)
initializeMavenStyle(resolver, repo.name, repo.root)
resolver.setPatterns() // has to be done after initializeMavenStyle, which calls methods that overwrite the patterns
resolver