This repository was archived by the owner on Dec 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathJavaExecutionInfo.bzl
More file actions
15 lines (14 loc) · 1.39 KB
/
Copy pathJavaExecutionInfo.bzl
File metadata and controls
15 lines (14 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'''Defines the `JavaExecutionInfo` provider.
'''
JavaExecutionInfo = provider(
doc = "Encodes information about how this Java target should be run (i.e. how `java` should be invoked).",
fields = {
"java_dependency_info": "This Java target's `JavaDependencyInfo`. (In the common case, this just wraps the JAR with this target's compiled Java sources.)",
"deps": "A list of this target's dependencies (i.e. `deps`). Each should provide a `JavaDependencyInfo`. This list may be empty, but it should not be `None`.",
"main_class": "A string encoding the class whose `main()` method should be used to start the Java application. (E.g., `mypkg.MyMainClass`.). This should neither be the empty string nor `None`.",
"java_agents": "A list of 2-tuples describing the `java_agent`s to include and the options with which they should be run. Each 2-tuple's first should be a target which provides both a `JavaAgentInfo` and a `JavaDependencyInfo`, and its second should be a string. This list may be empty, but it should not be `None`.",
"java_runtime_toolchain_info": "The `JavaRuntimeToolchainInfo` to use.",
# TODO(dwtj): Consider supporting native agents (i.e. JVMTI agents).
"jvm_flags": "Encodes a sequence of custom flags (a.k.a. arguments) which should be added to an invocation of the `java` command when this Java target is run via `bazel run`.",
},
)