OutputDirs

class OutputDirs

A class for holding mappings from source directories to their output location. This functionality can be accessed only programmatically. The command line compiler uses a single output location, but tools may use this functionality to set output location per source directory.

class Object
trait Matchable
class Any

Value members

Concrete methods

def add(srcDir: String, outDir: String): Unit

Add a destination directory for sources found under srcdir. Both directories should exits.

Add a destination directory for sources found under srcdir. Both directories should exits.

def add(src: AbstractFile, dst: AbstractFile): Unit

Return the output directory for the given file.

Return the output directory for the given file.

Return the list of source-destination directory pairs.

Return the list of source-destination directory pairs.

def setSingleOutput(outDir: String): Unit

Set the single output directory. From now on, all files will be dumped in there, regardless of previous calls to 'add'.

Set the single output directory. From now on, all files will be dumped in there, regardless of previous calls to 'add'.

Set the single output directory. From now on, all files will be dumped in there, regardless of previous calls to 'add'.

Set the single output directory. From now on, all files will be dumped in there, regardless of previous calls to 'add'.

def srcFilesFor(classFile: AbstractFile, srcPath: String): List[AbstractFile]

Return the source file path(s) which correspond to the given classfile path and SourceFile attribute value, subject to the condition that source files are arranged in the filesystem according to Java package layout conventions.

Return the source file path(s) which correspond to the given classfile path and SourceFile attribute value, subject to the condition that source files are arranged in the filesystem according to Java package layout conventions.

The given classfile path must be contained in at least one of the specified output directories. If it does not then this method returns Nil.

Note that the source file is not required to exist, so assuming a valid classfile path this method will always return a list containing at least one element.

Also that if two or more source path elements target the same output directory there will be two or more candidate source file paths.