BuildPod is the base class for build scripts used to manage building a Fan source code and resources into a Fan pod.
See docTools::Build for details.
Slots
- cleanSource
-
@target = "delete all intermediate and target files"
virtual Void clean() - compileSource
-
@target = "compile fan source into pod"
virtual Void compile(Bool includeFandocAndSrc := false) - compileAllSource
-
@target = "compile+native (no fandoc+src)"
virtual Void compileAll() - defaultTargetSource
-
override Target defaultTarget()
Overrides build::BuildScript.defaultTarget
Default target is compile.
- dependsDirSource
-
Uri? dependsDir
The directory to look in for the dependency pod file (and potentially their recursive dependencies). If null then we use the compiler's own pod definitions via reflection (which is more efficient). As a general rule you shouldn't mess with this field - it is used by the
build
andcompiler
build scripts for bootstrap build. - docSource
- dotnetNativeSource
-
@target = "build native .NET assembly"
virtual Void dotnetNative() - fullSource
-
@target = "clean+compile+native (with doc+src)"
virtual Void full() -
override internal Void initEnv()
Overrides build::BuildScript.initEnv
Internal initialization before setup is called
- javaNativeSource
-
@target = "build native Java jar file"
virtual Void javaNative() - jsSource
-
@target = "compile Fan source to JavaScript"
virtual Void js() - outDirSource
-
Uri? outDir
Directory to write pod file. By default it goes into "Repo.working + fan/lib"
- podDefSource
-
File? podDef
Location of "pod.fan" which defines the pod meta-data needed to compile the pod from source. By default this is assumed to be a peer to the build script.
- podDependsSource
-
Depend[] podDepends()
Pod facet
@sys::podDepends
- podDotnetDirsSource
-
Uri[]? podDotnetDirs()
Pod facet
@sys::podDotnetDirs
- podFacetsSource
-
PodFacetsParser podFacets()
Parse the facets from the "pod.fan" source file.
-
private PodFacetsParser? podFacetsParser
- podJavaDirsSource
-
Uri[]? podJavaDirs()
Pod facet
@sys::podJavaDirs
- podJsSource
-
Bool podJs()
Pod facet
@sys::js
- podJsDirsSource
-
Uri[]? podJsDirs()
Pod facet
@sys::podJsDirs
- podNameSource
-
Str? podName
Programatic name of the pod. Required to match name in "pod.fan".
- podNodocSource
-
Bool podNodoc()
Pod facet
@sys::nodoc
- podResDirsSource
-
Uri[]? podResDirs()
Pod facet
@sys::podResDirs
- podSrcDirsSource
-
Uri[]? podSrcDirs()
Pod facet
@sys::podSrcDirs
- testSource
-
override internal Void validate()
Overrides build::BuildScript.validate
Validate subclass constructor setup required meta-data.
- versionSource
-
Version? version
Version of the pod - default is set to @buildVersion. Required.