Skip to content

Commit

Permalink
Merge pull request #441 from xuwei-k/parentheses
Browse files Browse the repository at this point in the history
add parentheses
  • Loading branch information
mkurz authored Oct 18, 2024
2 parents 1e40878 + 49c8ccf commit fc00d48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/com/typesafe/sbteclipse/core/Eclipse.scala
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ private object Eclipse extends EclipseSDTConfig {
}

def onSuccess(state: State)(effects: IO[Seq[String]]): State = {
val names = effects.unsafePerformIO
val names = effects.unsafePerformIO()
if (names.isEmpty)
state.log.warn("There was no project to create Eclipse project files for!")
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ object EclipsePlugin {
// This is done to ease integration with Eclipse, but it's doubtful as to how effective it is.
val managedClassesDirectory = (scope / EclipseKeys.classesManaged).value

val managedSources = ((srcManaged ** "*.scala").get ++ (srcManaged ** "*.java").get)
val managedSources = ((srcManaged ** "*.scala").get() ++ (srcManaged ** "*.java").get())
.filter(f => f.getAbsolutePath.startsWith(baseDir.getAbsolutePath))
.map(f => PlainVirtualFileConverter.converter.toVirtualFile(sbt.io.Path.apply(f.getAbsolutePath.replace(baseDir.getAbsolutePath, "${BASE}")).asPath))
val managedClasses = managedSources
Expand All @@ -119,7 +119,7 @@ object EclipsePlugin {
// Copy modified class files
val managedSet = IO.copy(managedClasses)
// Remove deleted class files
(managedClassesDirectory ** "*.class").get.filterNot(managedSet.contains).foreach(_.delete())
(managedClassesDirectory ** "*.class").get().filterNot(managedSet.contains).foreach(_.delete())
}
analysis
}
Expand Down

0 comments on commit fc00d48

Please sign in to comment.