classnetColarJar::BuildJar

sys::Obj
  build::Task
    build::JdkTask
      netColarJar::BuildJar

Build standalone Java jars (TODO: JNLP, wars). It basically build a jar with a minimal Fantom runtime and some pods The jar contains a Java launcher that does the following:

  • When the jar is run, it copies the Fantom runtime into a dir
  • Then the launcher starts a given Fantom program using that runtime.
STANDARD_PODS

const static Str[] STANDARD_PODS := ...

appMain

Str appMain

Required: Main class/method Ex: mypod::Main.main Ex: mypod::Main same as mypod::Main.main Ex: mypod same as mypod::Main.main

destFile

File destFile

Required: Destination file

extraFiles

Uri:Uri extraFiles := [Uri:Uri][:]

Any extra files to be copied (to relative dest uri) Example : ./swt/swt.jar : lib/java/ext/swt.jar

make

new make(BuildScript script, |This? f := null)

Constructor

pods

Str[] pods := Str[,]

Required: Pod names to include, dependant pods will be resolved and added as well

run

virtual override Void run()

Build a standalone Jar (Containing a minimal Fantom runtime)