tcolar / netColarJar

Utility to create standalone Fantom applications as a single self executing Jar file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Single jar

Utility to create standalone Fantom applications as a single self executing Jar file. This is different than the "DistJar" Fantom option because as it will expand and create a proper fantom runtime folder upon execution which tend to have less limitations and work better than JarDist.

Usage:

Use the provided BuildJar Task to create the jar from your app build script

Example:

using build
using netColarJar

class build : BuildPod
{
// ... your app description
}

@Target { help = "Build single jar" }
Void jar()
{
  BuildJar(this){
    destFile = `./mycoolapp.jar`
    appMain = "mycoolapp::Main"
    pods = ["mycoolapp"] // Dependency get pulled automatically
    //extraFiles = [`./swt.jar` : `lib/java/ext/${dir.name}/swt.jar`]
  }.run
}

}

Build the jar:

fan build.fan jar

Once done the app can be run simply using JNLP or manually:

java -jar mycoolapp.jar

About

Utility to create standalone Fantom applications as a single self executing Jar file.

License:MIT License


Languages

Language:Fantom 54.3%Language:Java 45.7%