Revision ae9ad70f src/main/scala/gr/grnet/aquarium/ResourceLocator.scala

b/src/main/scala/gr/grnet/aquarium/ResourceLocator.scala
40 40
import com.ckkloverdos.sys.{SysEnv, SysProp}
41 41
import java.io.File
42 42

  
43
import gr.grnet.aquarium.util.justForSure
44

  
43 45
/**
44 46
 * Used to locate configuration files.
45 47
 *
......
49 51
 */
50 52

  
51 53
object ResourceLocator {
54
  /**
55
   * This is normally exported from the shell script that starts Aquarium.
56
   */
52 57
  final val AQUARIUM_HOME = SysEnv("AQUARIUM_HOME")
53 58

  
54 59
  lazy val AQUARIUM_HOME_FOLDER: File = {
......
65 70
  }
66 71

  
67 72
  /**
73
   * This exists in order to have a feeling of where we are.
74
   */
75
  final val HERE = justForSure(getResource(".")).get.url.toExternalForm
76

  
77
  /**
68 78
   * Current directory resource context.
69 79
   */
70 80
  private[this] final val AppBaseResourceContext = new FileStreamResourceContext(".")

Also available in: Unified diff