From 7e918290f5d2aee85347ea45d89d05675a40817f Mon Sep 17 00:00:00 2001 From: mstaib Date: Tue, 26 Sep 2017 01:42:15 +0200 Subject: Move --plugin to JavaOptions and remove --plugin_copt. --plugin, though once used for C++, is currently a Java-specific flag. --plugin_copt is currently a total no-op, and has been for a long time. Moving these to the Java fragment is a little neater and helps get one step closer to enforcing LateBoundDefault fragment access. Additionally, since the "no plugins with duplicate names" restriction was added to work with plugin_copt, this restriction can be lifted. It no longer adds any value. RELNOTES: None. PiperOrigin-RevId: 169981221 --- .../lib/analysis/config/BuildConfiguration.java | 46 ---------------------- .../build/lib/rules/java/JavaConfiguration.java | 6 +++ .../devtools/build/lib/rules/java/JavaOptions.java | 17 ++++++++ .../build/lib/rules/java/JavaSemantics.java | 5 +-- 4 files changed, 25 insertions(+), 49 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/com/google/devtools/build/lib/analysis/config/BuildConfiguration.java b/src/main/java/com/google/devtools/build/lib/analysis/config/BuildConfiguration.java index 51e6883457..bc0ba445a6 100644 --- a/src/main/java/com/google/devtools/build/lib/analysis/config/BuildConfiguration.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/config/BuildConfiguration.java @@ -520,34 +520,6 @@ public final class BuildConfiguration implements BuildEvent { ) public boolean strictFilesets; - // Plugins are build using the host config. To avoid cycles we just don't propagate - // this option to the host config. If one day we decide to use plugins when building - // host tools, we can improve this by (for example) creating a compiler configuration that is - // used only for building plugins. - @Option( - name = "plugin", - converter = LabelListConverter.class, - allowMultiple = true, - defaultValue = "", - category = "flags", - documentationCategory = OptionDocumentationCategory.UNCATEGORIZED, - effectTags = {OptionEffectTag.UNKNOWN}, - help = "Plugins to use in the build. Currently works with java_plugin." - ) - public List