class

XetoEnv

@Js
const abstract class XetoEnv : Obj

XetoEnv models the server side file system search path.

methods buildVars

Build varaibles

createNamespace

Construct a namespace for the given set of lib versions for this env

cur

Current environment for the VM

homeDir

Home directory where xeto software is installed Not available in browser environemnts

installDir

Default install directory for xeto install

path

List of paths to search for libraries in both src and lib format

remoteRepos

Configured remote repos which can be used to install to the local repo

repo

Local repository of all installed xeto libs

resolveNamespace

Given a list of library names, resolve them to the installed versions, solve their dependency graph, and create a namespace

workDir

Working directory - first directory in the path

buildVars abstract Str:Str buildVars()

Build varaibles

createNamespace abstract Namespace createNamespace(LibVersion[] libs)

Construct a namespace for the given set of lib versions for this env. This method does not solve the dependency graph. The list of lib versions passed must be a complete dependency tree that satisifies all version constraints.

cur static XetoEnv cur()

Current environment for the VM

homeDir abstract File homeDir()

Home directory where xeto software is installed Not available in browser environemnts.

installDir abstract File installDir()

Default install directory for xeto install. Default is the workDir Not available in browser environemnts.

path abstract File[] path()

List of paths to search for libraries in both src and lib format. Not available in browser environemnts.

remoteRepos abstract RemoteRepoRegistry remoteRepos()

Configured remote repos which can be used to install to the local repo. Not available in browser environemnts.

repo abstract LocalRepo repo()

Local repository of all installed xeto libs. Not available in browser environemnts.

resolveNamespace abstract Namespace resolveNamespace(Str[] names)

Given a list of library names, resolve them to the installed versions, solve their dependency graph, and create a namespace.

workDir abstract File workDir()

Working directory - first directory in the path. The workDir is used as default location for xeto init to create new libs. Not available in browser environemnts.

Haxall 4.0.6 ∙ 21-Jul-2026 09:48 EDT