I am using JavaFX ant scripts to generate native bundles. The generated native executables use the name of the Main class. Is there any way to specify what the executable name should be? short of renaming the Main class?
I've scoured the Internet but have failed to find a configuration option that will do this. The specific reason I am running into this problem is that I am using another library (getdown) to launch my application, and because if this my main class name is the name of the Getdown main class, which will be confusing for my users.
The <fx:application>
element of the <fx:build>
target in build.xml defines a name
attribute that is used for the application title. I.e. you can do
<fx:deploy width="${javafx.run.width}" height="${javafx.run.height}"
nativeBundles="all"
outdir="${basedir}/${dist.dir}" outfile="${application.title}">
<fx:application name="My Cool App" mainClass="${javafx.main.class}"/>
<!-- ... -->
</fx:deploy>
See the official documentation for more details.