diff options
author | 2015-05-06 15:42:42 +0000 | |
---|---|---|
committer | 2015-05-07 14:03:57 +0000 | |
commit | aa4922c4e5c1a96d38944d6351e0f1e343671e0d (patch) | |
tree | a917bc22c03c55230bb9d405b4b4c3f9f5801453 /src/main/java/com/google/devtools/build | |
parent | 69b135ad829ad8cea7eecda4c4c0f6710f2cb2b2 (diff) |
Expose information from JavaRuntimeClasspathProvider to Skylark
It's undocumented, but it can be used for experimentation.
--
MOS_MIGRATED_REVID=92928896
Diffstat (limited to 'src/main/java/com/google/devtools/build')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/java/JavaRuntimeClasspathProvider.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/java/JavaRuntimeClasspathProvider.java b/src/main/java/com/google/devtools/build/lib/rules/java/JavaRuntimeClasspathProvider.java index c8090df9a2..4d03bd2292 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/java/JavaRuntimeClasspathProvider.java +++ b/src/main/java/com/google/devtools/build/lib/rules/java/JavaRuntimeClasspathProvider.java @@ -19,6 +19,9 @@ import com.google.devtools.build.lib.analysis.TransitiveInfoProvider; import com.google.devtools.build.lib.collect.nestedset.NestedSet; import com.google.devtools.build.lib.concurrent.ThreadSafety.Immutable; +import com.google.devtools.build.lib.syntax.SkylarkCallable; +import com.google.devtools.build.lib.syntax.SkylarkModule; + /** * Provider for the runtime classpath contributions of a Java binary. * @@ -26,6 +29,7 @@ import com.google.devtools.build.lib.concurrent.ThreadSafety.Immutable; * (e.g. plugins). */ @Immutable +@SkylarkModule(name = "JavaRuntimeClasspathProvider", doc = "") public final class JavaRuntimeClasspathProvider implements TransitiveInfoProvider { private final NestedSet<Artifact> runtimeClasspath; @@ -37,6 +41,7 @@ public final class JavaRuntimeClasspathProvider implements TransitiveInfoProvide /** * Returns the artifacts included on the runtime classpath of this binary. */ + @SkylarkCallable(name = "runtime_classpath", doc = "", structField = true) public NestedSet<Artifact> getRuntimeClasspath() { return runtimeClasspath; } |