O'Reilly logo

sbt in Action by Josh Suereth and Matthew Farwell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. The IO and Process libraries

This chapter covers

  • Creating sbt tasks that run external processes
  • Manipulating files with sbt’s IO library
  • Logging information with sbt’s task loggers
  • Managing the task dependency graph
  • Forking Java processes

So far you’re up and running with sbt and you have a basic build, along with tests to make sure that your code works. But you still have a couple of issues with your build. Your integration tests aren’t quite as slick as you’d like—you still need to start the preowned-kittens application manually. To be fully integrated in your build, you should start the server before running the tests and stop it afterward. You’ll start other processes as well. But before that, you have the problem of packaging. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required