void () { final HashMap<String, String> options = new HashMap<>(); options.put(PRELOADER_CLASS, "MyPreloader"); options.put(PRELOADER_JAR, "preloader.jar"); doTest(""" <fx:fileset id="jarDeployPreloader_preloader_files" requiredFor="preloader" dir="temp" includes="preloader.jar"> </fx:fileset> <fx:fileset id="all_but_preloader_jarDeployPreloader" dir="temp" excludes="preloader.jar" includes="**/*.jar"> </fx:fileset> <fx:fileset id="all_but_jarDeployPreloader" dir="temp" includes="**/*.jar"> <exclude name="jarDeployPreloader.jar"> </exclude> <exclude name="preloader.jar"> </exclude> </fx:fileset> <fx:fileset id="all_jarDeployPreloader" dir="temp" includes="**/*.jar"> </fx:fileset> <fx:application id="jarDeployPreloader_id" name="jarDeployPreloader" mainClass="Main" preloaderClass="MyPreloader"> </fx:application> <fx:jar destfile="temp/jarDeployPreloader.jar"> <fx:application refid="jarDeployPreloader_id"> </fx:application> <fileset dir="temp" excludes="**/*.jar"> </fileset> <fx:resources> <fx:fileset refid="jarDeployPreloader_preloader_files"> </fx:fileset> <fx:fileset refid="all_but_jarDeployPreloader"> </fx:fileset> </fx:resources> </fx:jar> <fx:deploy width="800" height="400" updatemode="background" outdir="temp/deploy" outfile="jarDeployPreloader"> <fx:application refid="jarDeployPreloader_id"> </fx:application> <fx:resources> <fx:fileset refid="jarDeployPreloader_preloader_files"> </fx:fileset> <fx:fileset refid="all_but_preloader_jarDeployPreloader"> </fx:fileset> </fx:resources> </fx:deploy> """, options); }