CommonPaths

public class CommonPaths

Fields

logger

static final ILogger logger

root

protected final FileObject root

Constructors

CommonPaths

public CommonPaths(FileObject root)

Methods

find

protected FileObject find(Iterable<FileObject> dirs, String path)

mbComponentConfigFile

public FileObject mbComponentConfigFile()
Returns:Metaborg component configuration file.

replicateDir

public FileObject replicateDir()
Returns:Target output directory for replicated resources.

resolve

protected FileObject resolve(FileObject dir, String path)

resolve

protected FileObject resolve(FileObject dir, String... paths)

root

public FileObject root()
Returns:Root directory.

srcGenDir

public FileObject srcGenDir()
Returns:Generated sources directory. All generated source code (Stratego, SDF, config files, etc.) go into this directory.

targetDir

public FileObject targetDir()
Returns:Target output directory. All compiled outputs go into this directory.

targetMetaborgDir

public FileObject targetMetaborgDir()
Returns:Target output directory for compiled MetaBorg artifacts (Stratego JAR, parse table, etc.). All compiled artifacts that should be included with the language go into this directory.

transDir

public FileObject transDir()
Returns:Transformations directory. Contains the Stratego definition, NaBL definition, TS definition, and DynSem definition.