modules/jdk.packager/src/antplugin/java/com/sun/javafx/tools/ant/DeployFXTask.java

Print this page




 611 
 612             for (Property p: pl.properties) {
 613                 deployParams.addJvmProperty(p.name, p.value);
 614             }
 615             for (Jvmarg a: pl.jvmargs) {
 616                 deployParams.addJvmArg(a.value);
 617             }
 618             for (Property a: pl.jvmUserArgs) {
 619                 deployParams.addJvmUserArg(a.name, a.value);
 620             }
 621         }
 622     }
 623 
 624     private void setPreferences() {
 625         if (prefs != null) {
 626             deployParams.setNeedShortcut(prefs.getShortcut());
 627             deployParams.setNeedInstall(prefs.getInstall());
 628             deployParams.setNeedMenu(prefs.getMenu());
 629             deployParams.setSystemWide(prefs.getSystemInstall());
 630             deployParams.setInstalldirChooser(prefs.getInstalldirChooser());

 631         }
 632     }
 633 
 634     private void setAppInfo() {
 635         if (appInfo != null) {
 636             deployParams.setTitle(appInfo.title);
 637             deployParams.setVendor(appInfo.vendor);
 638             deployParams.setDescription(appInfo.appDescription);
 639             deployParams.setCategory(appInfo.category);
 640             deployParams.setLicenseType(appInfo.licenseType);
 641             deployParams.setCopyright(appInfo.copyright);
 642             deployParams.setEmail(appInfo.email);
 643 
 644             for (Info.Icon i: appInfo.icons) {
 645                 if (i instanceof Info.Splash) {
 646                    deployParams.addIcon(i.href, i.kind, i.width, i.height, i.depth,
 647                         ((Info.Splash) i).mode);
 648                 } else {
 649                    deployParams.addIcon(i.href, i.kind, i.width, i.height, i.depth,
 650                         DeployParams.RunMode.WEBSTART);




 611 
 612             for (Property p: pl.properties) {
 613                 deployParams.addJvmProperty(p.name, p.value);
 614             }
 615             for (Jvmarg a: pl.jvmargs) {
 616                 deployParams.addJvmArg(a.value);
 617             }
 618             for (Property a: pl.jvmUserArgs) {
 619                 deployParams.addJvmUserArg(a.name, a.value);
 620             }
 621         }
 622     }
 623 
 624     private void setPreferences() {
 625         if (prefs != null) {
 626             deployParams.setNeedShortcut(prefs.getShortcut());
 627             deployParams.setNeedInstall(prefs.getInstall());
 628             deployParams.setNeedMenu(prefs.getMenu());
 629             deployParams.setSystemWide(prefs.getSystemInstall());
 630             deployParams.setInstalldirChooser(prefs.getInstalldirChooser());
 631             deployParams.setSingleton(prefs.getSingleton());
 632         }
 633     }
 634 
 635     private void setAppInfo() {
 636         if (appInfo != null) {
 637             deployParams.setTitle(appInfo.title);
 638             deployParams.setVendor(appInfo.vendor);
 639             deployParams.setDescription(appInfo.appDescription);
 640             deployParams.setCategory(appInfo.category);
 641             deployParams.setLicenseType(appInfo.licenseType);
 642             deployParams.setCopyright(appInfo.copyright);
 643             deployParams.setEmail(appInfo.email);
 644 
 645             for (Info.Icon i: appInfo.icons) {
 646                 if (i instanceof Info.Splash) {
 647                    deployParams.addIcon(i.href, i.kind, i.width, i.height, i.depth,
 648                         ((Info.Splash) i).mode);
 649                 } else {
 650                    deployParams.addIcon(i.href, i.kind, i.width, i.height, i.depth,
 651                         DeployParams.RunMode.WEBSTART);