public class MacAppBundler extends AbstractImageBundler
Modifier and Type | Field and Description |
---|---|
static BundlerParamInfo<String> |
BUNDLE_ID_SIGNING_PREFIX |
static BundlerParamInfo<File> |
CONFIG_ROOT |
static BundlerParamInfo<String> |
DEFAULT_ICNS_ICON |
static BundlerParamInfo<String> |
DEVELOPER_ID_APP_SIGNING_KEY |
static BundlerParamInfo<File> |
ICON_ICNS |
static String |
MAC_BUNDLER_PREFIX |
static EnumeratedBundlerParam<String> |
MAC_CATEGORY |
static BundlerParamInfo<String> |
MAC_CF_BUNDLE_IDENTIFIER |
static BundlerParamInfo<String> |
MAC_CF_BUNDLE_NAME |
static BundlerParamInfo<String> |
MAC_CF_BUNDLE_VERSION |
static BundlerParamInfo<Boolean> |
MAC_CONFIGURE_LAUNCHER_IN_PLIST |
static BundlerParamInfo<JreUtils.Rule[]> |
MAC_RULES |
static BundlerParamInfo<RelativeFileSet> |
MAC_RUNTIME |
static BundlerParamInfo<URL> |
RAW_EXECUTABLE_URL |
CFG_FORMAT_INI, CFG_FORMAT_PROPERTIES, LAUNCHER_CFG_FORMAT
baseResourceLoader, BUNDLER_PREFIX, IMAGES_ROOT
Constructor and Description |
---|
MacAppBundler() |
Modifier and Type | Method and Description |
---|---|
void |
cleanupConfigFiles(Map<String,? super Object> params) |
static JreUtils.Rule[] |
createMacRuntimeRules(Map<String,? super Object> params) |
File |
doBundle(Map<String,? super Object> p,
File outputDirectory,
boolean dependentTask) |
boolean |
doValidate(Map<String,? super Object> p) |
File |
execute(Map<String,? super Object> params,
File outputParentDir)
Creates a bundle from existing content.
|
static RelativeFileSet |
extractMacRuntime(String base,
Map<String,? super Object> params) |
void |
extractRuntimeFlags(Map<String,? super Object> params) |
static Collection<BundlerParamInfo<?>> |
getAppBundleParameters() |
Collection<BundlerParamInfo<?>> |
getBundleParameters()
The parameters that this bundler uses to generate it's bundle.
|
String |
getBundleType() |
protected String |
getCacheLocation(Map<String,? super Object> params) |
String |
getDescription() |
String |
getID() |
static String |
getLauncherCfgName(Map<String,? super Object> p) |
String |
getName() |
boolean |
validate(Map<String,? super Object> params)
Determines if this bundler will execute with the given parameters.
|
static boolean |
validCFBundleVersion(String v) |
extractFlagsFromVersion, imageBundleValidation, testRuntime, writeCfgFile
fetchResource, fetchResource, preprocessTextResource, toString
public static final String MAC_BUNDLER_PREFIX
public static final BundlerParamInfo<Boolean> MAC_CONFIGURE_LAUNCHER_IN_PLIST
public static final EnumeratedBundlerParam<String> MAC_CATEGORY
public static final BundlerParamInfo<String> MAC_CF_BUNDLE_NAME
public static final BundlerParamInfo<String> MAC_CF_BUNDLE_IDENTIFIER
public static final BundlerParamInfo<String> MAC_CF_BUNDLE_VERSION
public static final BundlerParamInfo<File> CONFIG_ROOT
public static final BundlerParamInfo<URL> RAW_EXECUTABLE_URL
public static final BundlerParamInfo<String> DEFAULT_ICNS_ICON
public static final BundlerParamInfo<JreUtils.Rule[]> MAC_RULES
public static final BundlerParamInfo<RelativeFileSet> MAC_RUNTIME
public static final BundlerParamInfo<String> DEVELOPER_ID_APP_SIGNING_KEY
public static final BundlerParamInfo<String> BUNDLE_ID_SIGNING_PREFIX
public static final BundlerParamInfo<File> ICON_ICNS
public static RelativeFileSet extractMacRuntime(String base, Map<String,? super Object> params)
protected String getCacheLocation(Map<String,? super Object> params)
getCacheLocation
in class AbstractImageBundler
public static boolean validCFBundleVersion(String v)
public boolean validate(Map<String,? super Object> params) throws UnsupportedPlatformException, ConfigException
Bundler
params
- The parameters to be validate. Validation may modify
the map, so if you are going to be using the same map
across multiple bundlers you should pass in a deep copy.UnsupportedPlatformException
- If the bundler cannot run on this
platform (i.e. creating mac apps on windows)ConfigException
- If the configuration params are incorrect. The
exception may contain advice on how to modify the params map
to make it valid.public boolean doValidate(Map<String,? super Object> p) throws UnsupportedPlatformException, ConfigException
public File doBundle(Map<String,? super Object> p, File outputDirectory, boolean dependentTask)
public static JreUtils.Rule[] createMacRuntimeRules(Map<String,? super Object> params)
public String getName()
public String getDescription()
public String getID()
public String getBundleType()
public Collection<BundlerParamInfo<?>> getBundleParameters()
Bundler
public static Collection<BundlerParamInfo<?>> getAppBundleParameters()
public File execute(Map<String,? super Object> params, File outputParentDir)
Bundler
Bundler.validate(java.util.Map)
date} returns true with the
parameters map, then you can expect a valid output. However if an exception
was thrown out of validate or it returned false then you should not
expect sensible results from this call. It may or may not return a value,
and it may or may not throw an exception. But any output should not
be considered valid or sane.params
- The parameters as specified by getBundleParameters.
Keyed by the id from the ParamInfo. Execution may
modify the map, so if you are going to be using the
same map across multiple bundlers you should pass
in a deep copy.outputParentDir
- The parent dir that the returned bundle will be placed in.public void extractRuntimeFlags(Map<String,? super Object> params)
extractRuntimeFlags
in class AbstractImageBundler
Copyright © 2020. All rights reserved.