craft_parts.plugins.jlink_plugin module¶
The JLink plugin.
- class craft_parts.plugins.jlink_plugin.JLinkPlugin(*, properties, part_info)[source]¶
Bases:
PluginCreate a Java Runtime using JLink.
- Parameters:
properties (
PluginProperties)part_info (
PartInfo)
- get_build_commands()[source]¶
Return a list of commands to run during the build step.
- Return type:
list[str]
- get_build_environment()[source]¶
Return a dictionary with the environment to use in the build step.
- Return type:
dict[str,str]
- get_build_packages()[source]¶
Return a set of required packages to install in the build environment.
- Return type:
set[str]
- get_build_snaps()[source]¶
Return a set of required snaps to install in the build environment.
- Return type:
set[str]
- properties_class¶
alias of
JLinkPluginProperties
- validator_class¶
alias of
JLinkPluginEnvironmentValidator
- class craft_parts.plugins.jlink_plugin.JLinkPluginEnvironmentValidator(*, part_name, env, properties)[source]¶
Bases:
PluginEnvironmentValidatorCheck the execution environment for the JLink plugin.
- Parameters:
part_name (
str) – The part whose build environment is being validated.env (
str) – A string containing the build step environment setup.properties (
PluginProperties)
- validate_environment(*, part_dependencies=None)[source]¶
Ensure the environment contains dependencies needed by the plugin.
- Parameters:
part_dependencies (
list[str] |None) – A list of the parts this part depends on.- Raises:
PluginEnvironmentValidationError – If go is invalid and there are no parts named go.
- Return type:
None
- class craft_parts.plugins.jlink_plugin.JLinkPluginProperties(**data)[source]¶
Bases:
PluginPropertiesThe part properties used by the JLink plugin.
- Parameters:
data (
Any)
-
jlink_extra_modules:
list[str]¶
-
jlink_jars:
list[str]¶
- model_config: ClassVar[ConfigDict] = {'alias_generator': <function PluginProperties.<lambda>>, 'extra': 'forbid', 'frozen': True, 'validate_assignment': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
plugin:
Literal['jlink']¶