Docs / Modules / S8Env

S8Env

com.s8.meta.env.environment

Global environment, loaded from /etc/s8-conf.properties as S8Env.LOCAL.

Machine config

/etc/s8-conf.properties
JAVA_HOME = /Library/Java/JavaVirtualMachines/temurin-25.jdk/Contents/Home
dev.stack = /Users/you/qx/git
prod.stack = /Users/you/stack

S8Mode

  • DEV — isJar() == false, sources under dev.stack.
  • PROD — isJar() == true, jars under prod.stack.
  • UNDEFINED — not yet resolved.

S8Env.getRootPath(mode), getDevRootPath(), getProdRootPath() are the path helpers the rest of the stack uses.

S8ModuleUtilities.retrieveS8Counterpart(Module, verbose) reflects the static MODULE field declared by @S8ModuleDescriptor.

Registry S8Modules.CENTER exists; lookup methods are currently commented out. The live pattern is SomeClass.MODULE.