class

JarDist

class JarDist : JdkTask

JarDist compiles a set of Fantom pods into a single Java JAR file.

constructors make

Construct uninitialized task

fields mainMethod

Qualified name of main method to run for JAR

mainMethodArg

Does the main method accept a Str[] arg

outFile

Required output jar file to create

podNames

List of pods to compile into JAR

methods doEtcFiles

doReflect

doReflectPodManifest

run

Run the javac task

doEtcFiles static Void doEtcFiles(File homeDir, |Uri,File| onFile)

doReflect static Void doReflect(Str podName, File podFile, |Uri,File->Bool| onFile)

doReflectPodManifest static Void doReflectPodManifest(Str[] podNames, |Uri,File| onFile)

mainMethod Str? : mainMethod

Qualified name of main method to run for JAR. This must be a static void method with no arguments.

mainMethodArg Bool : mainMethodArg

Does the main method accept a Str[] arg

make new make(BuildScript script)

Construct uninitialized task

outFile File? : outFile

Required output jar file to create

podNames Str[] : podNames

List of pods to compile into JAR; sys is always implied

run virtual Void run()

Run the javac task

Haxall 4.0.6 ∙ 21-Jul-2026 09:48 EDT