Skip to content

Releases: sbt/io

1.1.0

02 Oct 04:35
v1.1.0
Compare
Choose a tag to compare
  • POSIX permission operations #76

1.0.1

02 Oct 04:35
v1.0.1
Compare
Choose a tag to compare

v1.0.0...v1.0.1

  • Provide companion apply for sbt.internal.io.Source #74

1.0.0

09 Aug 23:06
v1.0.0
Compare
Choose a tag to compare

Features, fixes, changes with compatibility implications

  • IO uses the package name sbt.io, but it will be imported under sbt in sbt/sbt.
  • Path.relativizeFile(baseFile, file) is renamed to IO.relativizeFile(baseFile, file).
  • PathFinder.x_!(mapper) moved to def pair on PathFinder.
  • PathFinder's *** method is moved to allPaths method.

Improvements

  • Path.directory and Path.contentOf are donated from sbt-native-packager #38 by @muuki88.
  • WatchService that abstracts PollingWatchService and Java NIO. #47 by @Duhemm on behalf of The Scala Center.
  • Adds variants of IO.copyFile and IO.copyDirectory that accept sbt.io.CopyOptions(). See below for details.

CopyOptions

sbt IO 1.0 add variant of IO.copyFile and IO.copyDirectory that accept sbt.io.CopyOptions().
CopyOptions() is an example of pseudo case class similar to the builder pattern.

import sbt.io.{ IO, CopyOptions }

IO.copyDirectory(source, target)

// The above is same as the following
IO.copyDirectory(source, target, CopyOptions()
  .withOverwrite(false)
  .withPreserveLastModified(true)
  .withPreserveExecutable(true))

#53 by @dwijnand

1.0.0-RC3

28 Jul 15:14
v1.0.0-RC3
Compare
Choose a tag to compare
1.0.0-RC3 Pre-release
Pre-release

Features, fixes, changes with compatibility implications

  • IO uses the package name sbt.io, but it will be imported under sbt in sbt/sbt.
  • Path.relativizeFile(baseFile, file) is renamed to IO.relativizeFile(baseFile, file).
  • PathFinder.x_!(mapper) moved to def pair on PathFinder.
  • PathFinder's *** method is moved to allPaths method.

Improvements

  • Path.directory and Path.contentOf are donated from sbt-native-packager #38 by @muuki88.
  • WatchService that abstracts PollingWatchService and Java NIO. #47 by @Duhemm on behalf of The Scala Center.
  • Adds variants of IO.copyFile and IO.copyDirectory that accept sbt.io.CopyOptions(). See below for details.

CopyOptions

sbt IO 1.0 add variant of IO.copyFile and IO.copyDirectory that accept sbt.io.CopyOptions().
CopyOptions() is an example of pseudo case class similar to the builder pattern.

import sbt.io.{ IO, CopyOptions }

IO.copyDirectory(source, target)

// The above is same as the following
IO.copyDirectory(source, target, CopyOptions()
  .withOverwrite(false)
  .withPreserveLastModified(true)
  .withPreserveExecutable(true))

#53 by @dwijnand

1.0.0-M13

15 Jul 17:15
v1.0.0-M13
Compare
Choose a tag to compare
1.0.0-M13 Pre-release
Pre-release

Features, fixes, changes with compatibility implications

  • IO uses the package name sbt.io, but it will be imported under sbt in sbt/sbt.
  • Path.relativizeFile(baseFile, file) is renamed to IO.relativizeFile(baseFile, file).
  • PathFinder.x_!(mapper) moved to def pair on PathFinder.
  • PathFinder's *** method is moved to allPaths method.

Improvements

  • Path.directory and Path.contentOf are donated from sbt-native-packager #38 by @muuki88.
  • WatchService that abstracts PollingWatchService and Java NIO. #47 by @Duhemm on behalf of The Scala Center.
  • Adds variants of IO.copyFile and IO.copyDirectory that accept sbt.io.CopyOptions(). See below for details.

CopyOptions

sbt IO 1.0 adds variants of IO.copyFile and IO.copyDirectory that accept sbt.io.CopyOptions().
CopyOptions() is an example of pseudo case class similar to the builder pattern.

import sbt.io.{ IO, CopyOptions }

IO.copyDirectory(source, target)

// The above is same as the following
IO.copyDirectory(source, target, CopyOptions()
  .withOverwrite(false)
  .withPreserveLastModified(true)
  .withPreserveExecutable(true))

#53 by @dwijnand

1.0.0-M12

30 Jun 21:34
v1.0.0-M12
Compare
Choose a tag to compare
1.0.0-M12 Pre-release
Pre-release

Features, fixes, changes with compatibility implications

  • IO uses the package name sbt.io, but it will be imported under sbt in sbt/sbt.
  • Path.relativizeFile(baseFile, file) is renamed to IO.relativizeFile(baseFile, file).
  • PathFinder.x_!(mapper) moved to def pair on PathFinder.
  • PathFinder's *** method is moved to allPaths method.

Improvements

  • Path.directory and Path.contentOf are donated from sbt-native-packager #38 by @muuki88.
  • WatchService that abstracts PollingWatchService and Java NIO. #47 by @Duhemm on behalf of The Scala Center.
  • Adds variants of IO.copyFile and IO.copyDirectory that accept sbt.io.CopyOptions(). See below for details.

CopyOptions

sbt IO 1.0 adds variants of IO.copyFile and IO.copyDirectory that accept sbt.io.CopyOptions().
CopyOptions() is an example of pseudo case class similar to the builder pattern.

import sbt.io.{ IO, CopyOptions }

IO.copyDirectory(source, target)

// The above is same as the following
IO.copyDirectory(source, target, CopyOptions()
  .withOverwrite(false)
  .withPreserveLastModified(true)
  .withPreserveExecutable(true))

#53 by @dwijnand