mirror of https://github.com/sbt/sbt.git
fix Locate to only try to open archives
This commit is contained in:
parent
4442f6a80e
commit
3b86fc628e
|
|
@ -50,7 +50,7 @@ object Locate
|
|||
def definesClass(entry: File): String => Boolean =
|
||||
if(entry.isDirectory)
|
||||
directoryDefinesClass(entry)
|
||||
else if(entry.exists)
|
||||
else if(entry.exists && classpath.ClasspathUtilities.isArchive(entry))
|
||||
jarDefinesClass(entry)
|
||||
else
|
||||
const(false)
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ object Sbt extends Build
|
|||
|
||||
// Implements the core functionality of detecting and propagating changes incrementally.
|
||||
// Defines the data structures for representing file fingerprints and relationships and the overall source analysis
|
||||
lazy val compileIncrementalSub = testedBaseProject(compilePath / "inc", "Incremental Compiler") dependsOn(collectionSub, apiSub, ioSub, logSub)
|
||||
lazy val compileIncrementalSub = testedBaseProject(compilePath / "inc", "Incremental Compiler") dependsOn(collectionSub, apiSub, ioSub, logSub, classpathSub)
|
||||
// Persists the incremental data structures using SBinary
|
||||
lazy val compilePersistSub = baseProject(compilePath / "persist", "Persist") dependsOn(compileIncrementalSub, apiSub) settings(sbinary)
|
||||
// sbt-side interface to compiler. Calls compiler-side interface reflectively
|
||||
|
|
|
|||
Loading…
Reference in New Issue