diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/java/JavaSkylarkCommon.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/java/JavaSkylarkCommon.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/java/JavaSkylarkCommon.java b/src/main/java/com/google/devtools/build/lib/rules/java/JavaSkylarkCommon.java index 86267d4e95..4f975a1c76 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/java/JavaSkylarkCommon.java +++ b/src/main/java/com/google/devtools/build/lib/rules/java/JavaSkylarkCommon.java @@ -177,6 +177,14 @@ public class JavaSkylarkCommon { type = SkylarkList.class, generic1 = Artifact.class, defaultValue = "[]" + ), + @Param( + name = "resources", + positional = false, + named = true, + type = SkylarkList.class, + generic1 = Artifact.class, + defaultValue = "[]" ) } ) @@ -190,13 +198,15 @@ public class JavaSkylarkCommon { String strictDepsMode, ConfiguredTarget javaToolchain, ConfiguredTarget hostJavabase, - SkylarkList<Artifact> sourcepathEntries) throws EvalException { + SkylarkList<Artifact> sourcepathEntries, + SkylarkList<Artifact> resources) throws EvalException { JavaLibraryHelper helper = new JavaLibraryHelper(skylarkRuleContext.getRuleContext()) .setOutput(outputJar) .addSourceJars(sourceJars) .addSourceFiles(sourceFiles) + .addResources(resources) .setSourcePathEntries(sourcepathEntries) .setJavacOpts(javacOpts); |