diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-04-29 00:24:15 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-04-29 00:24:15 -0400 |
commit | 56655b67fa94c223935da9a4532d08bf88c12071 (patch) | |
tree | d0e17c0883f7f449b5e46bc12de119046d3aa2de /stage1/CbtPaths.scala | |
parent | 6f52b5140f76cf427c9fb1faac598e6c089a2101 (diff) | |
download | cbt-56655b67fa94c223935da9a4532d08bf88c12071.tar.gz cbt-56655b67fa94c223935da9a4532d08bf88c12071.tar.bz2 cbt-56655b67fa94c223935da9a4532d08bf88c12071.zip |
Fix building cbt as a cbt project
Diffstat (limited to 'stage1/CbtPaths.scala')
-rw-r--r-- | stage1/CbtPaths.scala | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/stage1/CbtPaths.scala b/stage1/CbtPaths.scala new file mode 100644 index 0000000..aa24d4e --- /dev/null +++ b/stage1/CbtPaths.scala @@ -0,0 +1,17 @@ +package cbt +import java.io._ +case class CbtPaths(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) +} |