mirror of
https://github.com/sbt/sbt.git
synced 2026-10-07 18:43:31 +02:00
fix Locate to only try to open archives
This commit is contained in:
@@ -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)
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user