aboutsummaryrefslogtreecommitdiff
path: root/stage1/paths.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-02-06 13:03:36 -0500
committerChristopher Vogt <oss.nsp@cvogt.org>2016-03-04 15:06:30 -0500
commit974942db43ff2d1fa7ba71ad60f9bb9eae2d8631 (patch)
treed7235df9d4d6a67753dc2a20ab6bfcb7a24dc74c /stage1/paths.scala
downloadcbt-974942db43ff2d1fa7ba71ad60f9bb9eae2d8631.tar.gz
cbt-974942db43ff2d1fa7ba71ad60f9bb9eae2d8631.tar.bz2
cbt-974942db43ff2d1fa7ba71ad60f9bb9eae2d8631.zip
CBT Version 1.0-BETA
Diffstat (limited to 'stage1/paths.scala')
-rw-r--r--stage1/paths.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/stage1/paths.scala b/stage1/paths.scala
new file mode 100644
index 0000000..f76c2f7
--- /dev/null
+++ b/stage1/paths.scala
@@ -0,0 +1,15 @@
+package cbt
+import java.io._
+object paths{
+ val cbtHome = new File(Option(System.getenv("CBT_HOME")).get)
+ val mavenCache = new File(cbtHome+"/cache/maven/")
+ val userHome = new File(Option(System.getProperty("user.home")).get)
+ val stage1 = new File(Option(System.getenv("STAGE1")).get)
+ val stage2 = new File(cbtHome + "/stage2/")
+ val nailgun = new File(Option(System.getenv("NAILGUN")).get)
+ private val target = Option(System.getenv("TARGET")).get
+ val stage1Target = new File(stage1 + "/" + target)
+ val stage2Target = new File(stage2 + "/" + target)
+ val nailgunTarget = new File(nailgun + "/" + target)
+ val sonatypeLogin = new File(cbtHome+"/sonatype.login")
+}