/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package bundlertest; import com.oracle.tools.packager.AbstractBundler; import java.util.HashMap; import java.util.Map; import com.sun.javafx.tools.packager.bundlers.BundleParams; import com.oracle.tools.packager.RelativeFileSet; import com.oracle.tools.packager.mac.MacAppBundler; import java.io.File; import java.util.Set; import java.util.TreeSet; /** * * @author dmitryc */ public class BundlerTest { /** * @param args the command line arguments */ public static void main(String[] args) { Map params = new HashMap<>(); File jarsDir = new File("/tmp"); Set jarFiles = new TreeSet<>(); jarFiles.add(new File("/tmp/HelloWorld.jar")); RelativeFileSet rfs = new RelativeFileSet(jarsDir, jarFiles); params.put(BundleParams.PARAM_APP_RESOURCES, rfs); AbstractBundler bundler = new MacAppBundler(); bundler.execute(params, new File("/tmp")); } }