Application Settings

The following keys allow you to specify additional metadata for the installer and the application manifest. Details can be found in the fx:info JavaFX Ant Task Reference.

Main Class

Default: (mainClass in Compile).value

javaFxMainClass := "com.example.MainClass"

Vendor

javaFxVendor := "ABC Inc."

Title

Default: name.value

javaFxTitle := "My Cool New Application"

App Version

Default: version.value

javaFxAppVersion := "1.0.0-BETA"

Category

javaFxCategory := "Tutorial"

Description

Default: description.value

javaFxDescription := "What the App does."

Copyright

javaFxCopyright := "ABC Inc. 2018"

License

Default: head of licenses.value

javaFxLicense := "Apache-2.0"

Width

Default: 800

javaFxWidth := 800

Height

Default: 800

javaFxHeight := 800

Embedded Width

Default: “100%”

javaFxEmbeddedWidth := "100%"

Embedded Height

Default: “100%”

javaFxEmbeddedHeight := "100%"

File Associations

Associates file extensions or MIME types with a self-contained application. See also Oracle JavaFX documentation

import com.quadstingray.sbt.javafx.model.FileAssociation

javaFxFileAssociations ++= Seq(FileAssociation("js", "text/javascript", "JavaScript Source"))

javaFxFileAssociations += FileAssociation("groovy", "", "")