void () { doTest(""" <fx:fileset id="all_but_jarDeployIconAbsolute" dir="temp" includes="**/*.jar"> <exclude name="jarDeployIconAbsolute.jar"> </exclude> </fx:fileset> <fx:fileset id="all_jarDeployIconAbsolute" dir="temp" includes="**/*.jar"> </fx:fileset> <fx:application id="jarDeployIconAbsolute_id" name="jarDeployIconAbsolute" mainClass="Main"> </fx:application> <fx:jar destfile="temp/jarDeployIconAbsolute.jar"> <fx:application refid="jarDeployIconAbsolute_id"> </fx:application> <fileset dir="temp" excludes="**/*.jar"> </fileset> <fx:resources> <fx:fileset refid="all_but_jarDeployIconAbsolute"> </fx:fileset> </fx:resources> </fx:jar> <condition property="app.icon.path" value="/project_dir/app_icon.png"> <and> <os family="unix"> </os> <not> <os family="mac"> </os> </not> </and> </condition> <condition property="app.icon.path" value="/project_dir/app_icon.icns"> <os family="mac"> </os> </condition> <condition property="app.icon.path" value="/project_dir/app_icon.ico"> <os family="windows"> </os> </condition> <fx:deploy width="800" height="400" updatemode="background" outdir="temp/deploy" outfile="jarDeployIconAbsolute" nativeBundles="all"> <fx:application refid="jarDeployIconAbsolute_id"> </fx:application> <fx:info> <fx:icon href="${app.icon.path}"> </fx:icon> </fx:info> <fx:resources> <fx:fileset refid="all_jarDeployIconAbsolute"> </fx:fileset> </fx:resources> </fx:deploy> """, Collections.singletonMap(ICONS, "/project_dir/app_icon.png,/project_dir/app_icon.icns,/project_dir/app_icon.ico")); }