aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main
diff options
context:
space:
mode:
authorGravatar cushon <cushon@google.com>2018-04-30 09:50:08 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-04-30 09:52:05 -0700
commita77afc4c85bf5dc345de1422a3081eb840154a8f (patch)
tree8d4fc0c72b635e32674a1beb4d83e8d11b04969d /src/main
parentd7fde0ea4580e58beb6801929daf0c183c3affba (diff)
Allow JavaInfo providers without sources or exports
PiperOrigin-RevId: 194799276
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/java/JavaInfoBuildHelper.java4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/java/JavaInfoBuildHelper.java b/src/main/java/com/google/devtools/build/lib/rules/java/JavaInfoBuildHelper.java
index 9c98907be2..d7d634bd4a 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/java/JavaInfoBuildHelper.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/java/JavaInfoBuildHelper.java
@@ -94,10 +94,6 @@ final class JavaInfoBuildHelper {
Object hostJavabase,
Location location)
throws EvalException {
- if (sourceFiles.isEmpty() && sourceJars.isEmpty() && exports.isEmpty()) {
- throw new EvalException(
- null, "source_jars, sources and exports cannot be simultaneous empty");
- }
final Artifact sourceJar;
if (sourceFiles.isEmpty() && sourceJars.isEmpty()) {
sourceJar = null;