Files
meson/docs/yaml/functions/jar.yaml
Tristan Partin 39f1d52e4a Add ability to add resources to jars
Previously Meson lacked the ability to add resources to jar files.

Fixes #9945
2022-03-22 13:21:26 +02:00

21 lines
582 B
YAML

name: jar
returns: jar
description: |
Build a jar from the specified Java source files. Keyword arguments
are the same as [[executable]]'s, with the addition of
`main_class` which specifies the main class to execute when running
the jar with `java -jar file.jar`.
posargs_inherit: _build_target_base
varargs_inherit: _build_target_base
kwargs_inherit: _build_target_base
kwargs:
main_class:
type: str
description: Main class for running the built jar
java_resources:
type: structured_src
since: 0.62.0
description: Resources to be added to the jar