getLog().info("Building Web deployment bundles");
try {
Build build = project.getBuild();
DeployParams deployParams = new DeployParams();
deployParams.setVerbose(verbose);
deployParams.setAppName(build.getFinalName());
deployParams.setVersion(project.getVersion());
deployParams.setVendor(vendor);
deployParams.setApplicationClass(mainClass);
deployParams.setOutdir(webOutputDir);
deployParams.setOutfile(build.getFinalName());
deployParams.setNeedMenu(needMenu);
deployParams.setNeedShortcut(needShortcut);
deployParams.addResource(jfxAppOutputDir, jfxMainAppJarName);
deployParams.addResource(jfxAppOutputDir, "lib");
deployParams.setAllPermissions(allPermissions);
deployParams.setPreloader(preLoader);
deployParams.setWidth(width);
deployParams.setHeight(height);
String embeddedWidth = this.embeddedWidth != null ? this.embeddedWidth : String.valueOf(width);
String embeddedHeight = this.embeddedHeight != null ? this.embeddedHeight : String.valueOf(height);
deployParams.setEmbeddedDimensions(embeddedWidth, embeddedHeight);
// turn off native bundles for this web build
//noinspection deprecation
deployParams.setBundleType(Bundler.BundleType.NONE);
getPackagerLib().generateDeploymentPackages(deployParams);
// if permissions have been requested then we need to sign the JAR file
if (allPermissions) {