Skip to content

Commit

Permalink
clean up temporary directory on exit. ref #502
Browse files Browse the repository at this point in the history
Directory was already empty, this just removes the empty directory.
  • Loading branch information
harrah committed Aug 20, 2012
1 parent 8dc7bb2 commit e44effa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/Defaults.scala
Expand Up @@ -59,7 +59,7 @@ object Defaults extends BuildCommon
crossVersion :== CrossVersion.Disabled,
scalaOrganization :== ScalaArtifacts.Organization,
buildDependencies <<= buildDependencies or Classpaths.constructBuildDependencies,
taskTemporaryDirectory := IO.createTemporaryDirectory,
taskTemporaryDirectory := { val dir = IO.createTemporaryDirectory; dir.deleteOnExit(); dir },
onComplete := { val dir = taskTemporaryDirectory.value; () => IO.delete(dir); IO.createDirectory(dir) },
concurrentRestrictions <<= concurrentRestrictions or defaultRestrictions,
parallelExecution :== true,
Expand Down

0 comments on commit e44effa

Please sign in to comment.