class BuildTask extends MMTTask
auxiliary type to represent the parameters and result of building a file/directory
this is no case class due to a state-dependent error continuation
- Source
- BuildTarget.scala
- Alphabetic
- By Inheritance
- BuildTask
- MMTTask
- Killable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
BuildTask(key: String, archive: Archive, inFile: File, children: Option[List[BuildTask]], inPath: FilePath, outFile: File, errorCont: OpenCloseHandler)
- inFile
the input file
- children
the build tasks of the children if this task refers to a directory
- inPath
the path of the input file inside the archive, relative to the input dimension
- outFile
the intended output file
- errorCont
BuildTargets should report errors here (instead of directly writing to errFile)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addListener(l: MMTTaskProgressListener): Unit
- Definition Classes
- MMTTask
- val archive: Archive
- def asDependency: BuildDependency
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
base: URI
the narration-base of the containing archive
- val children: Option[List[BuildTask]]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
contentDPath: DPath
the DPath corresponding to the inFile if inFile is a folder in a content-structured dimension
-
def
contentMPath: MPath
the MPath corresponding to the inFile if inFile is a file in a content-structured dimension
-
def
diesWith(implicit that: Killable): BuildTask.this.type
gives a killable object the same kill button as one that is already around
gives a killable object the same kill button as one that is already around
For example, when processing a task, generates a subtask, this should be called on the subtask to ensure killing the overall task also kills the subtask.
- Definition Classes
- Killable
-
def
dirName: String
the name of the folder if inFile is a folder
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val errorCont: OpenCloseHandler
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getReports: List[MMTTaskProgress]
get all reports in reverse chronological order
get all reports in reverse chronological order
- Definition Classes
- MMTTask
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val inFile: File
- val inPath: FilePath
- def isDir: Boolean
- def isEmptyDir: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isKilled: Boolean
processing should be aborted gracefully if true
processing should be aborted gracefully if true
- Definition Classes
- Killable
- val key: String
-
def
kill: Unit
signals aborting of processing
signals aborting of processing
- Definition Classes
- Killable
-
def
narrationDPath: DPath
the DPath corresponding to the inFile if inFile is in a narration-structured dimension
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val outFile: File
-
def
outPath: FilePath
(possibly shorter) output file name to be shown in user messages
-
def
removeListener(l: MMTTaskProgressListener): Unit
- Definition Classes
- MMTTask
-
def
reportProgress(a: MMTTaskProgress): Unit
adds a report and forwards it to all listeners
adds a report and forwards it to all listeners
- Definition Classes
- MMTTask
-
def
setTimeout[A](millisec: Int)(f: () ⇒ Unit): BuildTask.this.type
presses the kill button after the specified number of milli seconds
presses the kill button after the specified number of milli seconds
- Definition Classes
- Killable
-
var
skipped: Boolean
build targets should set this to true if they skipped the file so that it is not passed on to the parent directory
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()