< prev index next >

src/jdk.jpackage/share/classes/jdk/jpackage/internal/BundleParams.java

Print this page




  41     // RelativeFileSet
  42     public static final String PARAM_APP_RESOURCES      = "appResources";
  43 
  44     // BundlerType
  45     public static final String PARAM_TYPE               = "type";
  46 
  47     // String
  48     public static final String PARAM_BUNDLE_FORMAT      = "bundleFormat";
  49     // String
  50     public static final String PARAM_ICON               = "icon";
  51 
  52     // String - Name of bundle file and native launcher
  53     public static final String PARAM_NAME               = "name";
  54 
  55     // String - application vendor, used by most of the bundlers
  56     public static final String PARAM_VENDOR             = "vendor";
  57 
  58     // String - email name and email, only used for debian */
  59     public static final String PARAM_EMAIL              = "email";
  60 



  61     /* String - Copyright. Used on Mac */
  62     public static final String PARAM_COPYRIGHT          = "copyright";
  63 
  64     // String - GUID on windows for MSI, CFBundleIdentifier on Mac
  65     // If not compatible with requirements then bundler either do not bundle
  66     // or autogenerate
  67     public static final String PARAM_IDENTIFIER         = "identifier";
  68 
  69     /* boolean - shortcut preferences */
  70     public static final String PARAM_SHORTCUT           = "shortcutHint";
  71     // boolean - menu shortcut preference
  72     public static final String PARAM_MENU               = "menuHint";
  73 
  74     // String - Application version. Format may differ for different bundlers
  75     public static final String PARAM_VERSION            = "appVersion";
  76 
  77     // String - Application category. Used at least on Mac/Linux.
  78     // Value is platform specific
  79     public static final String PARAM_CATEGORY       = "applicationCategory";
  80 
  81     // String - Optional short application
  82     public static final String PARAM_TITLE              = "title";
  83 
  84     // String - Optional application description. Used by MSI and on Linux
  85     public static final String PARAM_DESCRIPTION        = "description";
  86 
  87     // String - License type. Needed on Linux (rpm)
  88     public static final String PARAM_LICENSE_TYPE       = "licenseType";
  89 
  90     // String - File with license. Format is OS/bundler specific
  91     public static final String PARAM_LICENSE_FILE       = "licenseFile";
  92 
  93     // String Main application class.
  94     // Not used directly but used to derive default values
  95     public static final String PARAM_APPLICATION_CLASS  = "applicationClass";
  96 
  97     // boolean - Adds a dialog to let the user choose a directory
  98     // where the product will be installed.
  99     public static final String PARAM_INSTALLDIR_CHOOSER = "installdirChooser";
 100 
 101     /**
 102      * create a new bundle with all default values
 103      */


 171     }
 172 
 173     public void setModulePath(String value) {
 174         putUnlessNull(StandardBundlerParam.MODULE_PATH.getID(), value);
 175     }
 176 
 177     public void setMainModule(String value) {
 178         putUnlessNull(StandardBundlerParam.MODULE.getID(), value);
 179     }
 180 
 181     public void setDebug(String value) {
 182         putUnlessNull(JLinkBundlerHelper.DEBUG.getID(), value);
 183     }
 184 
 185     public String getApplicationID() {
 186         return fetchParam(IDENTIFIER);
 187     }
 188 
 189     public String getPreferencesID() {
 190         return fetchParam(PREFERENCES_ID);
 191     }
 192 
 193     public String getTitle() {
 194         return fetchParam(TITLE);
 195     }
 196 
 197     public void setTitle(String title) {
 198         putUnlessNull(PARAM_TITLE, title);
 199     }
 200 
 201     public String getApplicationClass() {
 202         return fetchParam(MAIN_CLASS);
 203     }
 204 
 205     public void setApplicationClass(String applicationClass) {
 206         putUnlessNull(PARAM_APPLICATION_CLASS, applicationClass);
 207     }
 208 
 209     public String getAppVersion() {
 210         return fetchParam(VERSION);
 211     }
 212 
 213     public void setAppVersion(String version) {
 214         putUnlessNull(PARAM_VERSION, version);
 215     }
 216 
 217     public String getDescription() {
 218         return fetchParam(DESCRIPTION);




  41     // RelativeFileSet
  42     public static final String PARAM_APP_RESOURCES      = "appResources";
  43 
  44     // BundlerType
  45     public static final String PARAM_TYPE               = "type";
  46 
  47     // String
  48     public static final String PARAM_BUNDLE_FORMAT      = "bundleFormat";
  49     // String
  50     public static final String PARAM_ICON               = "icon";
  51 
  52     // String - Name of bundle file and native launcher
  53     public static final String PARAM_NAME               = "name";
  54 
  55     // String - application vendor, used by most of the bundlers
  56     public static final String PARAM_VENDOR             = "vendor";
  57 
  58     // String - email name and email, only used for debian */
  59     public static final String PARAM_EMAIL              = "email";
  60 
  61     // String - vendor <email>, only used for debian */
  62     public static final String PARAM_MAINTAINER         = "maintainer";
  63 
  64     /* String - Copyright. Used on Mac */
  65     public static final String PARAM_COPYRIGHT          = "copyright";
  66 
  67     // String - GUID on windows for MSI, CFBundleIdentifier on Mac
  68     // If not compatible with requirements then bundler either do not bundle
  69     // or autogenerate
  70     public static final String PARAM_IDENTIFIER         = "identifier";
  71 
  72     /* boolean - shortcut preferences */
  73     public static final String PARAM_SHORTCUT           = "shortcutHint";
  74     // boolean - menu shortcut preference
  75     public static final String PARAM_MENU               = "menuHint";
  76 
  77     // String - Application version. Format may differ for different bundlers
  78     public static final String PARAM_VERSION            = "appVersion";
  79 
  80     // String - Application category. Used at least on Mac/Linux.
  81     // Value is platform specific
  82     public static final String PARAM_CATEGORY       = "applicationCategory";
  83 



  84     // String - Optional application description. Used by MSI and on Linux
  85     public static final String PARAM_DESCRIPTION        = "description";
  86 
  87     // String - License type. Needed on Linux (rpm)
  88     public static final String PARAM_LICENSE_TYPE       = "licenseType";
  89 
  90     // String - File with license. Format is OS/bundler specific
  91     public static final String PARAM_LICENSE_FILE       = "licenseFile";
  92 
  93     // String Main application class.
  94     // Not used directly but used to derive default values
  95     public static final String PARAM_APPLICATION_CLASS  = "applicationClass";
  96 
  97     // boolean - Adds a dialog to let the user choose a directory
  98     // where the product will be installed.
  99     public static final String PARAM_INSTALLDIR_CHOOSER = "installdirChooser";
 100 
 101     /**
 102      * create a new bundle with all default values
 103      */


 171     }
 172 
 173     public void setModulePath(String value) {
 174         putUnlessNull(StandardBundlerParam.MODULE_PATH.getID(), value);
 175     }
 176 
 177     public void setMainModule(String value) {
 178         putUnlessNull(StandardBundlerParam.MODULE.getID(), value);
 179     }
 180 
 181     public void setDebug(String value) {
 182         putUnlessNull(JLinkBundlerHelper.DEBUG.getID(), value);
 183     }
 184 
 185     public String getApplicationID() {
 186         return fetchParam(IDENTIFIER);
 187     }
 188 
 189     public String getPreferencesID() {
 190         return fetchParam(PREFERENCES_ID);








 191     }
 192 
 193     public String getApplicationClass() {
 194         return fetchParam(MAIN_CLASS);
 195     }
 196 
 197     public void setApplicationClass(String applicationClass) {
 198         putUnlessNull(PARAM_APPLICATION_CLASS, applicationClass);
 199     }
 200 
 201     public String getAppVersion() {
 202         return fetchParam(VERSION);
 203     }
 204 
 205     public void setAppVersion(String version) {
 206         putUnlessNull(PARAM_VERSION, version);
 207     }
 208 
 209     public String getDescription() {
 210         return fetchParam(DESCRIPTION);


< prev index next >