mirror of https://github.com/sbt/sbt.git
refactor: Add parentheses to PathFinder.get (#8497)
This commit is contained in:
parent
0fa17f7705
commit
bc32efbea6
|
|
@ -40,7 +40,7 @@ object Scripted {
|
|||
import DefaultParsers.*
|
||||
|
||||
val scriptedFiles: NameFilter = ("test": NameFilter) | "pending"
|
||||
val pairs = (scriptedBase * AllPassFilter * AllPassFilter * scriptedFiles).get map {
|
||||
val pairs = (scriptedBase * AllPassFilter * AllPassFilter * scriptedFiles).get() map {
|
||||
(f: File) =>
|
||||
val p = f.getParentFile
|
||||
(p.getParentFile.getName, p.getName)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ object Transform {
|
|||
resourceGenerators += Def.task {
|
||||
val rdirs = Seq(sourceDirectory.value / "input_resources")
|
||||
val rm = resourceManaged.value
|
||||
val paths = (rdirs ** (-DirectoryFilter)).get --- rdirs
|
||||
val paths = (rdirs ** (-DirectoryFilter)).get() --- rdirs
|
||||
val rs = paths.pair(Path.rebase(rdirs, rm) | Path.flat(rm))
|
||||
val props = Map(
|
||||
"org" -> organization.value,
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ object Utils {
|
|||
val args = "xsbti.api" :: out.getAbsolutePath :: defs.map(_.getAbsolutePath).toList
|
||||
val mainClass = main getOrElse "No main class defined for datatype generator"
|
||||
run.run(mainClass, cp.files, args, s.log).failed foreach (e => sys error e.getMessage)
|
||||
(out ** "*.java").get
|
||||
(out ** "*.java").get()
|
||||
}
|
||||
def lastCompilationTime(analysis: Analysis): Long = {
|
||||
val lastCompilation = analysis.compilations.allCompilations.lastOption
|
||||
|
|
@ -177,7 +177,7 @@ object Utils {
|
|||
val _ = (data / Compile / scalafix)
|
||||
.toTask(s" --rules GenerateDataClass --out-from=$outFrom --out-to=$outTo")
|
||||
.value
|
||||
(to ** "*.scala").get
|
||||
(to ** "*.scala").get()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue