aboutsummaryrefslogtreecommitdiff
path: root/stage1/paths.scala
blob: c16c61414b345a4ee6a70fef03d9a97c9e645262 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package cbt
import java.io._
case class Paths(private val cbtHome: File, private val cache: File){
  val userHome: File = new File(Option(System.getProperty("user.home")).get)
  val nailgun: File = cbtHome ++ "/nailgun_launcher"
  val stage1: File = cbtHome ++ "/stage1"
  val stage2: File = cbtHome ++ "/stage2"
  val mavenCache: File = cache ++ "/maven"
  private val target = NailgunLauncher.TARGET.stripSuffix("/")
  val stage1Target: File = stage1 ++ ("/" ++ target)
  val stage2Target: File = stage2 ++ ("/" ++ target)
  val stage2StatusFile: File = stage2Target ++ ".last-success"
  val compatibility: File = cbtHome ++ "/compatibility"
  val compatibilityTarget: File = compatibility ++ ("/" ++ target)
  val compatibilityStatusFile: File = compatibilityTarget ++ ".last-success"
  val nailgunTarget: File = nailgun ++ ("/" ++ target)
}